Created
August 29, 2016 13:05
-
-
Save Pebblo/3aac25e4507dd8d3fdeafaf0138a8bf5 to your computer and use it in GitHub Desktop.
Example of how to change the date format used within the datetime list.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php //Please do not include the opening PHP tag if you already have one | |
function tw_ee_add_dow_to_datetime_list( $date_format ) { | |
//You can just add the 'l ' to the beginning of your current format like this: | |
//return 'l ' . $date_format; | |
//You can return a full date format to use like this: | |
return 'l F j, Y'; | |
} | |
add_filter( 'FHEE__espresso_list_of_event_dates__date_format', 'tw_ee_add_dow_to_datetime_list' ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment