Forked from jessepearson/bookings_calendar_default_to_first_available.php
Last active
August 2, 2018 08:07
-
-
Save flabernardez/369c215e571aac515302c25d7f87a574 to your computer and use it in GitHub Desktop.
#woocommerce #bookings Calendario de WooCommerce Bookings en mes primera reserva
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 // do not copy this line | |
/* | |
Will make the Bookings calender default to the month with the first available booking. | |
By default the current month will be shown on the WooCommerce Bookings calendar for performance reasons. | |
This will default it to the month with the first available block. | |
*/ | |
add_filter( 'wc_bookings_calendar_default_to_current_date', 'your_prefix_wc_bookings_calendar_default_to_current_date', 99 ); | |
function your_prefix_wc_bookings_calendar_default_to_current_date(){ | |
return false; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment