supercacherewriteconditions

supercacherewriteconditions

Hook Type: filter

See hook in core

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

apply_filters('supercacherewriteconditions') is found 1 times:

  • /wp-cache.php line 3161
    3157
    3158
    3159
    3160
    3161
    3162
    3163
    3164
    3165
    3166
    3167
            $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 ) {