Focus on cloud service provider activities
Notes on website operation and maintenance

Remove the version number of CSS and JS headers in the WordPress website

We try to simplify some code to improve the loading speed. Here we need to remove the version numbers of CSS and JS.

 //Remove the version number of WordPress theme plug-in CSS and JS by laozuo.org add_filter( 'style_loader_src', 'laozuoorg_remove_version' ); add_filter( 'script_loader_src', 'laozuoorg_remove_version' ); function laozuoorg_remove_version( $url ) { return remove_query_arg( 'ver', $url ); }

 

Vote for you
Domain name host preferential information push QQ group: six hundred and twenty-seven million seven hundred and seventy-five thousand four hundred and seventy-seven Get preferential promotion from merchants.
Like( zero )
Do not reprint without permission: Lao Zuo's Notes » Remove the version number of CSS and JS headers in the WordPress website