Some time we need to hide or removed WordPress version number from the site. Here we will learn how to remove WordPress version number from the site. To completely remove your WordPress version number, you will need to add the following function to your functions.php file:

function codecanal_remove_version() {
   return '';
}
add_filter('the_generator', 'codecanal_remove_version');

By adding above code, you will remove the WordPress version number from all areas on your site.

To removes all version numbers from all files put following code in functions.php file:

function codecanal_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', 'codecanal_remove_wp_ver_css_js', 9999 );
add_filter( 'script_loader_src', 'codecanal_remove_wp_ver_css_js', 9999 );
  • classified software

    Hi there, You’ve done a fantastic job. I will definitely digg it and personally suggest to my friends. I am confident they’ll be benefited from this web site. Miss feather hair extensions

  • Softbizscripts

    very interesting details you have mentioned , appreciate it for putting up.