supercacherewriteconditions

supercacherewriteconditions

Hook Type: filter

See hook in core

Displaying hooks found in version: wp-super-cache.1.9.4

apply_filters('supercacherewriteconditions') is found 1 times:

  • /wp-cache.php line 3039
    			$condition_rules[] = "RewriteCond %{HTTP_USER_AGENT} !^.*(" . addcslashes( str_replace( ', ', '|', $wp_cache_mobile_browsers ), ' ' ) . ").* [NC]";
    		if ( isset( $wp_cache_mobile_prefixes ) && "" != $wp_cache_mobile_prefixes )
    			$condition_rules[] = "RewriteCond %{HTTP_USER_AGENT} !^(" . addcslashes( str_replace( ', ', '|', $wp_cache_mobile_prefixes ), ' ' ) . ").* [NC]";
    	}
    	$condition_rules = apply_filters( 'supercacherewriteconditions', $condition_rules );
    
    	$rules = "<IfModule mod_rewrite.c>\n";
    	$rules .= "RewriteEngine On\n";
    	$rules .= "RewriteBase $home_root\n"; // props Chris Messina
    	$rules .= "#If you serve pages from behind a proxy you may want to change 'RewriteCond %{HTTPS} on' to something more sensible\n";
    	if ( isset( $wp_cache_disable_utf8 ) == false || $wp_cache_disable_utf8 == 0 ) {