Description #
This filter returns the nonce error message. You can modify the error message using this filter.
apply_filters('fluentform/nonce_error', $errorMessage);
Usage #
add_filter('fluentform/nonce_error', function ($errorMessage) {
$errorMessage = [
'_fluentformnonce' => ['Nonce verification failed, please try again.']
];
return $errorMessage;
}, 10, 1);
Parameters #
- $errorMessage (array) Error Message
Placement #
This code should be placed in the functions.php file of your active theme.
Source Code #
This filter is located in app/Modules/Form/FormHandler.php