llms_agree_to_terms_form_field( $echo = true )
Contents
Source Source
File: includes/functions/llms.functions.templates.privacy.php
function llms_agree_to_terms_form_field( $echo = true ) { // Because `do_action()` passes empty string. if ( '' === $echo ) { $echo = true; } $ret = ''; if ( llms_are_terms_and_conditions_required() ) { $ret = llms_form_field( array( 'columns' => 12, 'description' => '', 'default' => 'no', 'id' => 'llms_agree_to_terms', 'label' => llms_get_terms_notice( true ), 'last_column' => true, 'required' => true, 'type' => 'checkbox', 'value' => 'yes', 'wrapper_classes' => 'llms-agree-to-terms-wrapper', ), false ); } $ret = apply_filters( 'llms_agree_to_terms_form_field', $ret, $echo ); if ( $echo ) { echo $ret; return; } return $ret; }
Expand full source code Collapse full source code View on GitHub