Description  #

Using this filter you can modify the file upload validation rules and messages.

apply_filters('fluentform_file_upload_validations',[$rules, $messages],$this->form);

Usage   #

add_filter('fluentform_file_upload_validations', function ($validations, $form) {
    // do your stuff
    return $validations;
}, 10, 2);

Parameters #

  • $validations (array) Validation Rules
  • $form (object) Form Object

Placement #

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

Source Code #

This filter is located in the pro version src/Uploader.php

Powered by BetterDocs

Leave a Reply

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