Remove WordPress Version Number from CSS and JS Files

I will explain below how to remove WordPress version numbers.  The following code will remove the WordPress version numbers from your CSS and JS files by adding the function.php file. You can simply get rid of the version number problem with the following code. You can easily delete wordpress version number and version parameter CSS and JS files in your website

 

function remove_script_version( $src ){
    $parts = explode( '?ver', $src );
    return $parts[0];
}
add_filter( 'script_loader_src', 'remove_script_version', 15, 1 );
add_filter( 'style_loader_src', 'remove_script_version', 15, 1 );

1 Comment

  • Aspeepemep


    The ED due to that surgery might be either temporary or permanent. He is content, as well as the complete opposite of our opinion final years has in store for us.

    reply

Leave a Reply

Your email address will not be published. Required fields are marked *