Register script version not showing
I want to implement cache busting on a specific script, but the version is not added to the url as query vars. Here is the code I’m using : wp_register_script( ‘custom’, get_stylesheet_directory_uri() . ‘/js/custom.min.js’, array(‘jquery’,’modernizr’), filemtime( get_stylesheet_directory().’/js/custom.min.js’ ), true ); I’m using the filemtime function to get the timestamp of the last modification as my … Read more