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

Powered by BetterDocs

Leave a Reply

Your email address will not be published. Required fields are marked *