Follow below steps to remove WordPress Framework version from displaying completely from your website.
To remove the WordPress framework version from the Admin Dashboard:
1. To Disable Framework Updates, use plugin Disable WordPress Core Updates.
2. To remove Framework information from footer in Admin Dashboard, use plugin remove-admin-footer-and-version.
The above 2 steps will remove the Framework information completely from the dashboard.
The version information can still be seen in the Browser’s “View Source” : view-source:http://Website Address/ which shows the version information in two forms.
To remove WordPress Framework Version from View Source:
1. To remove the line – <meta name=”generator” content=”WordPress 3.3.2″ /> – add below code in the theme’s functions.php file:
function remove_wp_meta_tag()
{ return null; }
add_filter( ‘the_generator’, ‘remove_wp_meta_tag’ );
2. You can still see WordPress framework version in form of query string in scripts and styles – to remove add below code in the theme’s functions.php file:
function remove_wp_version_query_strings( $src ){
global $wp_version;
parse_str(parse_url($src, PHP_URL_QUERY), $query);
if ( !empty($query[‘ver’]) && $query[‘ver’] === $wp_version )
{ $src = remove_query_arg(‘ver’, $src);}
return $src;
}
add_filter( ‘script_loader_src’, ‘remove_wp_version_query_strings’ );
add_filter( ‘style_loader_src’, ‘remove_wp_version_query_strings’ );