Disable Smaller Components
-
There are useful things in this section, but one thing is missing. The wordpress version can be hidden, but the version of the plugins would also be good. I use 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;
}
You can turn the page with a switch, that would be useful. Thanks.
Viewing 5 replies - 1 through 5 (of 5 total)
Viewing 5 replies - 1 through 5 (of 5 total)
- The topic ‘Disable Smaller Components’ is closed to new replies.