Created
June 12, 2014 10:00
-
-
Save woogist/02f460967aa230641257 to your computer and use it in GitHub Desktop.
WooCommerce Bookings: date format
This file contains hidden or 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 | |
| // Bookings Date Format Tweak | |
| add_filter( 'woocommerce_bookings_date_format' , 'woocommerce_bookings_custom_date_format' ); | |
| /** | |
| * woocommerce_bookings_custom_date_format | |
| * | |
| * @access public | |
| * @since 1.0 | |
| * @return void | |
| */ | |
| function woocommerce_bookings_custom_date_format() { | |
| return 'j M Y'; // your custom format here, see http://fr2.php.net/manual/en/function.date.php | |
| } |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment