supercache_dir

supercache_dir

Hook Type: filter

See hook in core

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

apply_filters('supercache_dir') is found 1 times:

  • /wp-cache-phase2.php line 880
    876
    877
    878
    879
    880
    881
    882
    883
    884
    885
    886
        $hostname = (string) parse_url( get_option( 'home' ), PHP_URL_HOST );
    }
    $dir = preg_replace( '/:.*$/', '', $hostname ) . $uri; // To avoid XSS attacks
    if ( function_exists( 'apply_filters' ) ) {
        $dir = apply_filters( 'supercache_dir', $dir );
    } else {
        $dir = do_cacheaction( 'supercache_dir', $dir );
    }
    $dir = $cache_path . 'supercache/' . $dir . '/';
    if ( is_array( $cached_direct_pages ) && in_array( $_SERVER['REQUEST_URI'], $cached_direct_pages ) ) {
        $dir = ABSPATH . $uri . '/';