Description
This filter is executed when creating the credit card field and can be used to modify the “Security Code” label.
Usage
add_filter( 'gform_card_security_code', 'change_security_code', 10, 2 );
Parameters
Examples
This example changes the default Security Code label:
add_filter( 'gform_card_security_code', 'change_security_code', 10, 2 ); function change_security_code( $label, $form_id ) { return "Security Code"; }
Placement
This code should be placed in the functions.php file of your active theme.
Source Code
This filter is located in js.php and GF_Field_CreditCard::get_field_input() in includes/fields/class-gf-field-creditcard.php.