Enqueue script with version number not working
You don’t strictly need wp_register_script() but it is considered a best practice to use it as it allows other developers to programmatically work with the order and list of scripts being included. Regarding your issue, your code looks correct. Be sure to call it inside the wp_enqueue_scripts action (but I don’t think that’s influencing the … Read more