Disable Smaller Components (version can be hidden)
-
Hi!
Some of the smaller components do not work, hide versions! I don’t know why it’s not good, but I just noticed it. Previously I used this code:
//Remove WP Version From Styles
add_filter( ‘style_loader_src’, ‘remove_res_version’, 9999 );//Remove WP Version From Scripts
add_filter( ‘script_loader_src’, ‘remove_res_version’, 9999 );//Remove version number strings from static resources
function remove_res_version( $src ) {
if ( strpos( $src, ‘ver=’ ) )
$src = remove_query_arg( ‘ver’, $src );
return $src;
}
Thanks help.
Viewing 3 replies - 1 through 3 (of 3 total)
Viewing 3 replies - 1 through 3 (of 3 total)
- You must be logged in to reply to this topic.