Description
This filter is executed when creating the name suffix field and can be used to modify the "Suffix" label
Usage
<?php
add_filter("gform_name_suffix", "change_suffix", 10, 2);
?>
Parameters
$label
- (string) The label to be filtered.
$form_id
- (int) The current form's id.
Examples
This example changes the default name suffix label;
<?php
add_filter("gform_name_suffix", "change_name_suffix", 10, 2);
function change_name_suffix($label, $form_id){
return "Name Suffix";
}
?>
Source Code
This filter is located in common.php and js.php