Description  #

This filter returns the file type option for the upload field. Using this you can add more file types.

apply_filters('fluentform_file_type_options', $fileTypeOptions);

Usage   #

add_filter('fluentform_file_type_options', function ($types) {
    $types[] = [
        'label' => __('Autocad Files (dwg)', 'fluentform'),
        'value' => 'dwg',
    return $types;

Parameters #

  • $types (array) File Types

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/ValidationRuleSettings.php

Powered by BetterDocs

Leave a Reply

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