gform_name_suffix

gform_name_suffix

DescriptionUsageParametersExamplesSource Code

Description
This filter is executed when creating the name suffix field and can be used to modify the 「Suffix」 label.
Usage
add_filter( 'gform_name_suffix', 'change_suffix', 10, 2 );

Parameters

$label string
The label to be filtered.

$form_id integer
The id of the current form.

Examples
This example changes the default name suffix label:
add_filter( 'gform_name_suffix', 'change_suffix', 10, 2 );
function change_suffix( $label, $form_id ) {
return "Name Suffix";
}

Source Code
This filter is located in js.php and GF_Field_Name::get_field_input() in includes/fields/class-gf-field-name.php.

发表回复

您的邮箱地址不会被公开。 必填项已用 * 标注