gform_consent_checked_indicator

Description

The “gform_consent_checked_indicator” filter in Gravity Forms allows the Consent check mark image to be changed.

Usage

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

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.