Description
Use this filter to change the sub-label for the Confirm Password Field.
Usage
The following would apply your function to all forms.
add_filter( 'gform_password_confirm', 'your_function_name', 10, 2 );
To target a specific form append the form id to the hook name. (format: gform_password_confirm_FORMID)
add_filter( 'gform_password_confirm_6', 'your_function_name', 10, 2 );
Examples
This example changes the password sub-label to “Enter your password again”.
add_filter( 'gform_password_confirm_185', 'set_password_label', 10, 2 ); function set_password_label( $sublabel, $form_id ) { return 'Enter your password again'; }
Source Code
This filter is located in common.phpThis filter is located in GF_Field_Password::get_field_input() in includes/fields/class-gf-field-password.php.