Heads up!
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This article contains PHP code and is intended for developers. We offer this code as a courtesy, but don't provide support for code customizations or 3rd party development.
This hook allows you to manipulate the format of date fields in an .csv file.
Formidable Forms is the best WordPress Form Builder plugin. Get it for free!
Usage
add_filter('frm_csv_date_format', 'change_my_csv_format'); function change_my_csv_format($format)
Parameters
- $format (string)
Examples
Change Date Format
This example will change the format of date fields from the default Y/m/d to d/m/Y when it is exported as a .csv file.
add_filter('frm_csv_date_format', 'change_my_csv_format');
function change_my_csv_format($format){
$format = 'd/m/Y';
return $format;
}