Skip to content

Instantly share code, notes, and snippets.

Created April 25, 2016 10:08
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save anonymous/ed888a38d4d3a0a77569b0075d485d39 to your computer and use it in GitHub Desktop.
Save anonymous/ed888a38d4d3a0a77569b0075d485d39 to your computer and use it in GitHub Desktop.
WordPress: Statische Ressourcen von Query-Strings bereinigen
<?php
function evolution_remove_wp_ver_css_js( $src ) {
if ( strpos( $src, 'ver=' ) )
$src = remove_query_arg( 'ver', $src );
return $src;
}
add_filter( 'style_loader_src', 'evolution_remove_wp_ver_css_js', 9999 );
add_filter( 'script_loader_src', 'evolution_remove_wp_ver_css_js', 9999 );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment