Hey guys!
Previously I found this in documentation I believe to change the order of the date picker on the contact form from DD/MM/YY to MM/DD/YY:
add_filter( ‘avf_datepicker_dateformat’, function(){ return ‘mm / dd / yy’; } );
add_filter( ‘avf_datepicker_date_placeholder’, function(){ return ‘MM / DD / YY’; } );
Now unfortunately this is causing a PHP error and cannot be applied. Is there an update to this I’m missing?
Thanks!
I thought I would move this back up to the top to see if anyone is familiar with this, thanks :)
Hi,
Thank you for using Enfold.
The code looks correct. Please try this one:
add_filter( 'avf_datepicker_dateformat', function() { return 'mm / dd / yy'; } );
add_filter( 'avf_datepicker_date_placeholder', function(){ return 'MM / DD / YY'; } );
NOTE: Copy the code directly from this forum and not from your email.
Best regards,
Ismael