Skip to content

Instantly share code, notes, and snippets.

View chinmayrajyaguru's full-sized avatar
🎯
Focusing

Chinmay Rajyaguru chinmayrajyaguru

🎯
Focusing
View GitHub Profile
@chinmayrajyaguru
chinmayrajyaguru / remove-wordpress-query-strings.php
Created June 28, 2016 20:44
Remove WordPress Query Strings From Static Resources
#add this to functions.php
function _remove_query_strings_1( $src ){
$rqs = explode( '?ver', $src );
return $rqs[0];
}
if ( is_admin() ) {
// Remove query strings from static resources disabled in admin
}
else {