wp_super_cache_supercachedir хук-фильтрWPSCache 1.0

Использование

add_filter( 'wp_super_cache_supercachedir', 'wp_kama_super_cache_supercachedir_filter' );

/**
 * Function for `wp_super_cache_supercachedir` filter-hook.
 * 
 * @param  $cache_path . 'supercache/' . trailingslashit 
 *
 * @return 
 */
function wp_kama_super_cache_supercachedir_filter( $cache_path . 'supercache/' . trailingslashit ){

	// filter...
	return $cache_path . 'supercache/' . trailingslashit;
}
$cache_path . 'supercache/' . trailingslashit
-

Где вызывается хук

get_supercache_dir()
wp_super_cache_supercachedir
wp-super-cache/wp-cache-phase2.php 801
return trailingslashit( apply_filters( 'wp_super_cache_supercachedir', $cache_path . 'supercache/' . trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'http://', '', str_replace( 'https://', '', $home ) ) ) ) ) ) );

Где используется хук в WP Super Cache

wp-super-cache/plugins/domain-mapping.php 56
add_filter( 'wp_super_cache_supercachedir', 'domain_mapping_supercachedir' );