get_supercache_dir() WPSCache 1.0
Хуки из функции
Возвращает
Null. Ничего.
Использование
get_supercache_dir( $blog_id );
Код get_supercache_dir() get supercache dir WPSCache 1.7.1
function get_supercache_dir( $blog_id = 0 ) {
global $cache_path;
if ( $blog_id == 0 ) {
$home = get_option( 'home' );
} else {
$home = get_blog_option( $blog_id, 'home' );
}
return trailingslashit( apply_filters( 'wp_super_cache_supercachedir', $cache_path . 'supercache/' . trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'http://', '', str_replace( 'https://', '', $home ) ) ) ) ) ) );
}