Load custom checkout.js with timestamp

What I had tried

function override_checkout_scripts() {
        $bhtime = filemtime(dirname(__FILE__) . '/woocommerce/js/checkout.js');
        wp_enqueue_script('wc-checkout', get_template_directory_uri() . '/woocommerce/js/checkout.js', array('jquery', 'woocommerce', 'wc-country-select', 'wc-address-i18n'), $bhtime, true);
    add_action('wp_enqueue_scripts', 'override_checkout_scripts');

I want to load custom checkout js as I have done changes in js file.

I searched tried on Google and tried every single thing but No luck.

Thanks in advance.

Read more here: Load custom checkout.js with timestamp

Leave a Reply

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