get_wpcachehome() WPSCache 1.0
No Hooks.
Return
Null. Nothing.
Usage
get_wpcachehome();
Code of get_wpcachehome() get wpcachehome WPSCache 1.7.1
function get_wpcachehome() {
if ( function_exists( '_deprecated_function' ) ) {
_deprecated_function( __FUNCTION__, 'WP Super Cache 1.6.5' );
}
if ( ! defined( 'WPCACHEHOME' ) ) {
if ( is_file( dirname( __FILE__ ) . '/wp-cache-config-sample.php' ) ) {
define( 'WPCACHEHOME', trailingslashit( dirname( __FILE__ ) ) );
} elseif ( is_file( dirname( __FILE__ ) . '/wp-super-cache/wp-cache-config-sample.php' ) ) {
define( 'WPCACHEHOME', dirname( __FILE__ ) . '/wp-super-cache/' );
} else {
die( sprintf( esc_html__( 'Please create %s /wp-cache-config.php from wp-super-cache/wp-cache-config-sample.php', 'wp-super-cache' ), esc_attr( WP_CONTENT_DIR ) ) );
}
}
}