andru26
3/30/2017 - 10:52 PM

Remove CSS and JS versioning - functions.php

Remove CSS and JS versioning - functions.php

// remove CSS and JS versioning
function remove_cssjs_ver( $src ) {
  if( strpos( $src, '?ver=' ) )
    $src = remove_query_arg( 'ver', $src );
  return $src;
}
add_filter( 'style_loader_src', 'remove_cssjs_ver', 10, 2 );
add_filter( 'script_loader_src', 'remove_cssjs_ver', 10, 2 );