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');