@aniya.jaskolski
To make a specific date disabled in WooCommerce, you can use a custom code snippet. Here's how you can do it:
1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 |
// Disable specific dates in WooCommerce checkout calendar function disable_specific_dates( $array ) { // Add the specific date that you want to disable in the array $disabled_dates = array( '2022-12-25', // Example date to disable ); foreach ($disabled_dates as $date) { $array[$date] = 'disabled'; } return $array; } add_filter( 'woocommerce_checkout_fields', 'disable_specific_dates' ); |
Make sure to replace '2022-12-25' with the specific date you want to disable. You can add multiple dates to the $disabled_dates
array if you want to disable more than one date.
Please note that this code snippet is just an example and may need to be modified based on your specific requirements and WooCommerce setup.