get_wpcachehome()WPSCache 1.0

No Hooks.

Return

null. Nothing (null).

Usage

get_wpcachehome();

get_wpcachehome() code WPSCache 1.12.0

function get_wpcachehome() {
	if ( function_exists( '_deprecated_function' ) ) {
		_deprecated_function( __FUNCTION__, 'WP Super Cache 1.6.5' );
	}

	if ( ! defined( 'WPCACHEHOME' ) ) {
		if ( is_file( __DIR__ . '/wp-cache-config-sample.php' ) ) {
			define( 'WPCACHEHOME', trailingslashit( __DIR__ ) );
		} elseif ( is_file( __DIR__ . '/wp-super-cache/wp-cache-config-sample.php' ) ) {
			define( 'WPCACHEHOME', __DIR__ . '/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( WPCACHECONFIGPATH ) ) );
		}
	}
}