#Remove WP Version from assets
Add this to your functions.php
If you can't update it, the My Custom Functions plugin by Arthur "Berserkr" Gareginyan will work even on a managed wordpress setup.
// Remove WP Version From Styles | |
add_filter( 'style_loader_src', 'sdt_remove_ver_css_js', 9999 ); | |
// Remove WP Version From Scripts | |
add_filter( 'script_loader_src', 'sdt_remove_ver_css_js', 9999 ); | |
// Function to remove version numbers | |
function sdt_remove_ver_css_js( $src ) { | |
if ( strpos( $src, 'ver=' ) ) | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} |