llms_privacy_policy_form_field( $echo = true )


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;

	}


Top ↑

User Contributed Notes User Contributed Notes

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