gform_consent_checked_indicator_markup

gform_consent_checked_indicator_markup

DescriptionUsageParametersExamplesPlacementSinceSource Code

Description
The 「gform_consent_checked_indicator_markup」 filter in Gravity Forms allows the HTML markup of the Consent check box to be modified.
Usage
add_filter( 'gform_consent_checked_indicator_markup', 'your_function_name', 10, 1 );

Parameters

$checked_indicator_markup string
The current HTML markup.

Examples
add_filter( 'gform_consent_checked_indicator_markup', 'change_markup', 10, 1 );
function change_markup( $checked_indicator_markup ){
return '' . $checked_indicator_markup . '';
}

Placement
This code should be placed in the functions.php file of your active theme.
Since
This filter was added in Gravity Forms 2.4.
Source Code
This filter is located in GF_Field_Consent::__construct() in gravityforms/includes/fields/class-gf-field-consent.php.

发表回复

您的电子邮箱地址不会被公开。 必填项已用 * 标注