Optimizing

WordPress: Remove query strings from static resources

This is normal code for remove query strings from static resources. Add the code below to your function.php. 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’,… Baca selengkapnya WordPress: Remove query strings from static resources

Scroll to Top