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.

發表回覆

您的電子郵箱地址不會被公開。 必填項已用 * 標註