Hello world!

<?php


// Enqueue jQuery UI Datepicker
if (!function_exists('enqueue_datepicker')) {
    function enqueue_datepicker() {
        wp_enqueue_script('jquery-ui-datepicker');
        wp_enqueue_style('jquery-ui-css', 'https://ajax.googleapis.com/ajax/libs/jqueryui/1.12.1/themes/base/jquery-ui.css');
    }
}

add_action('wp_enqueue_scripts', 'enqueue_datepicker');

// Add custom JavaScript
function order_alg_wc_checkout_field_1_js() {
    ?>
    <script type="text/javascript">
        jQuery(document).ready(function($) {
            jQuery( "#order_alg_wc_checkout_field_1" ).datepicker({
                minDate:+2 // Allow selection starting from two days from the current date
            });
        });
    </script>
    <?php
}
add_action('wp_footer', 'order_alg_wc_checkout_field_1_js');

Leave a Reply

Your email address will not be published. Required fields are marked *

You may use these HTML tags and attributes:

<a href="" title=""> <abbr title=""> <acronym title=""> <b> <blockquote cite=""> <cite> <code> <del datetime=""> <em> <i> <q cite=""> <s> <strike> <strong>

cake servings size chart

X
SizeSlices
1 kg8 slices
1.5 kg15 slices
2 kg20 slices
2.5 kg25 slices
3 kg30 slices
4 kg40 slices