Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter jorgeorpinel

    (@jorgeorpinel)

    p.s. for anyone interested in rolling out your own solution to do just that, simply add this in a plugin or functions.php of your theme:

    function _remove_ver_from_css_and_js( $src ) {
    	if( strpos( $src, 'ver=' ) )
    		$src = remove_query_arg( 'ver', $src );
    	return $src;
    }
    //
    add_filter( 'script_loader_src', '_remove_ver_from_css_and_js', 15, 1 );
    add_filter( 'style_loader_src', '_remove_ver_from_css_and_js', 15, 1 );

    Kind of scary the dev never addressed this. And why do you folks have two almost identical plugins, other than the slightly different names?

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘Doesn't remove version from URLs’ is closed to new replies.