Adding custom date dropdown filter
-
I’m looking for the way to add a custom filter for date dropdown like I can do on date picker with code snippet.
function wpf_dev_datetime_date_formats( $date_formats ) {
$date_formats = array(
‘m/d/Y’ => ‘m/d/Y’,
‘d/m/Y’ => ‘d/m/Y’,
‘F j, Y’ => ‘F j, Y’,
‘l jS of F Y’ => ‘l jS of F Y’, // custom date filter
);return $date_formats;
}
add_filter( ‘wpforms_datetime_date_formats’, ‘wpf_dev_datetime_date_formats’, 10, 1 );
How can I add a custom date filter for date dropdown?
Thanks.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Adding custom date dropdown filter’ is closed to new replies.