llms_agree_to_terms_form_field( $echo = true )


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;

	}


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.