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 );
There are currently no comments.