Created
February 13, 2018 03:19
-
-
Save coreymcollins/66030495dbb89124658914b74773b37d to your computer and use it in GitHub Desktop.
Remove version numbers from WordPress core enqueues
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
function cmc_remove_wp_core_version_numbers( $src ) { | |
$src = remove_query_arg( 'ver', $src ); | |
return $src; | |
} | |
add_filter( 'style_loader_src', 'cmc_remove_wp_core_version_numbers', 9999 ); | |
add_filter( 'script_loader_src', 'cmc_remove_wp_core_version_numbers', 9999 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment