gform_form_not_found_message

gform_form_not_found_message

DescriptionUsageParametersExamplePlacementSource Code

Description
The 「gform_form_not_found_message」 filter in Gravity Forms allows the default form message, 「Oops! We could not locate your form.」 to be changed.
Usage
add_filter( 'gform_form_not_found_message', 'your_function_name', 10, 2 );

Parameters

$message string
The default form not found message.

$id int
The ID of the form attempted to be used.

Example
add_filter( 'gform_form_not_found_message', 'change_message', 10, 2 );
function change_message( $message, $id ){
return "We could not find the form with id " . $id;
}

Placement
Your code snippet should be placed in the functions.php file of your active theme.
Source Code
This filter is located in GFFormDisplay::get_form() in gravityforms/form_display.php.

发表回复

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