llms_privacy_policy_form_field( $echo = true )
Contents
Source Source
File: includes/functions/llms.functions.templates.privacy.php
function llms_privacy_policy_form_field( $echo = true ) { // Because `do_action()` passes empty string. if ( '' === $echo ) { $echo = true; } $ret = ''; $notice = llms_get_privacy_notice( true ); if ( $notice ) { $ret = llms_form_field( array( 'columns' => 12, 'value' => '<label>' . $notice . '</label>', 'last_column' => true, 'type' => 'html', 'id' => 'llms-privacy-policy', ), false ); } $ret = apply_filters( 'llms_privacy_policy_form_field', $ret, $echo ); if ( $echo ) { echo $ret; return; } return $ret; }
Expand full source code Collapse full source code View on GitHub