Documentation

gform_email_confirm

  1. Description
  2. Usage
  3. Parameters
  4. Examples
  5. Placement
  6. Source Code

Description

This filter is executed when creating the email field and can be used to modify the "Confirm Email" label

Usage

Applies to all forms

<?php
add_filter("gform_email_confirm", "change_email_confirm", 10, 2);
?>

Applies to a specific form. In this case, form Id 5

<?php
add_filter("gform_email_confirm_5", "change_email_confirm", 10, 2);
?>

Parameters

  • $label string

    The label to be filtered.

  • $form_id integer

    The current form's id.

Examples

This example changes the default confirm email label;

<?php
add_filter("gform_email_confirm", "change_email_confirm", 10, 2);
function change_email_confirm($label, $form_id){
    return "Confirm Your Email";
}
?>

Placement

This code should be placed in the functions.php file of your active theme.

Source Code

This filter is located in common.php and js.php