Last active
February 3, 2017 08:47
-
-
Save chugs/ded1bb9e0bd26b6b28eb0f1b05f81e7b to your computer and use it in GitHub Desktop.
Remove Query String From URL - https://kinsta.com/knowledgebase/remove-query-string-from-url/
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 _remove_script_version( $src ){ | |
$parts = explode( '?', $src ); | |
return $parts[0]; | |
} | |
add_filter( 'script_loader_src', '_remove_script_version', 15, 1 ); | |
add_filter( 'style_loader_src', '_remove_script_version', 15, 1 ); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment