wp_super_cache_supercachedir
Usage
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
- -
Where the hook is called
wp_super_cache_supercachedir
wp-super-cache/wp-cache-phase2.php 822
return trailingslashit( apply_filters( 'wp_super_cache_supercachedir', $cache_path . 'supercache/' . trailingslashit( strtolower( preg_replace( '/:.*$/', '', str_replace( 'http://', '', str_replace( 'https://', '', $home ) ) ) ) ) ) );
Where the hook is used in WP Super Cache
wp-super-cache/plugins/domain-mapping.php 56
add_filter( 'wp_super_cache_supercachedir', 'domain_mapping_supercachedir' );