Skip to content

Instantly share code, notes, and snippets.

@woogists
Created March 9, 2018 16:28
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 1 You must be signed in to fork a gist
  • Save woogists/5c1d2f16493b657270270251ce48e038 to your computer and use it in GitHub Desktop.
Save woogists/5c1d2f16493b657270270251ce48e038 to your computer and use it in GitHub Desktop.
[WooCommerce Bookings] Change date format when calendar picker is not used in front end
/**
* Will make it so that the date format when the calendar is not used is DD/MM/YYYY on a Bookable product.
*/
add_filter( 'woocommerce_bookings_mdy_format' , '__return_false' );
@Jamonzito
Copy link

Hi everybody this is only working for the start date but end date stay the same....

@abiblair
Copy link

Awesome thanks for this. Worked great on latest woocommerce booking plugin, datepicker on the product page. Can't believe it's not an option.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment