fluentform_validation_message_{$ruleName}

Description  #

This filter returns validation messages. Use this you can change the message of a specific rule.

apply_filters('fluentform_validation_message_'.$ruleName, $rule['message'], $item);

Usage   #

add_filter('fluentform_validation_message_'.$ruleName, function ($message, $item) {
   //do your stuff
   return $message;
}, 10, 2);

Parameters #

  • $message (string) Validation Message
  • $item(array) Current Item

Placement #

This code should be placed in the functions.php file of your active theme.

Source Code #

This filter is located in app/Services/FormBuilder/FormBuilder.php

Powered by BetterDocs

Leave a Reply

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