Remove WP Version Parameter From Any Enqueued Script in functions.php
Sep-2019
/* remove wp version param from any enqueued scripts */
function vc_remove_wp_ver_css_js( src ) {
if ( strpos(src, 'ver=' . get_bloginfo( 'version' ) ) )
src = remove_query_arg( 'ver',src );
return $src;
}
add_filter( 'style_loader_src', 'vc_remove_wp_ver_css_js', 9999 );
add_filter( 'script_loader_src', 'vc_remove_wp_ver_css_js', 9999 );