gform_consent_checked_indicator

Description

The โ€œgform_consent_checked_indicatorโ€ filter in Gravity Forms allows the Consent check mark image to be changed.

Usage

1
add_filter( 'gform_consent_checked_indicator', 'your_function_name', 10, 1 );

Parameters

  • $checked_indicator_url string

    The URL of the image being used for the check mark.

Examples

1
2
3
4
add_filter( 'gform_consent_checked_indicator', 'change_image', 10, 1 );
function change_image( $checked_indicator_url ){
  return GFCommon::get_base_url() . '/images/star1.png';
}

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.