Description  #

This filter returns extracted validation rules from inputs.

apply_filters('fluentform_item_rules_' . $item['element'], $rules, $item);

Usage   #

add_filter('fluentform_item_rules_' . $item['element'], function ($rules, $item) {
     return $rules;
 }, 10, 2);

Parameters #

  • $rules (array) Value
  • $item (array) Field Data

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 *