Description  #

This filter returns date formats for the date field. You can add more formats using this filter.

apply_filters('fluentform/available_date_formats', $formats);

Usage   #

add_filter('fluentform/available_date_formats', function($formats){
  return $formats;
}, 10, 2);

Parameters #

  • $formats (array) Date formats

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/Components/DateTime.php

Powered by BetterDocs

Leave a Reply

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