gform_consent_checked_indicator_markup

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 '<a href="https://www.gravityforms.com">' . $checked_indicator_markup . '</a>';
}

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.