Remove Script and Stylesheet Version in Wordpress

Paste below code in the active themes function.php
function remove_wp_version ( $src ) {
        if ( strpos( $src, 'ver=' . get_bloginfo( 'version' ) ) )
        $src = remove_query_arg( 'ver', $src );
    return $src;
}
add_filter( 'script_loader_src', 'remove_wp_version', 9999 );
add_filter( 'style_loader_src', 'remove_wp_version', 9999 );

Comments

Popular posts from this blog

Stop video playing when Bootstrap modal is closed