wpsc_init()
No Hooks.
Return
null
. Nothing (null).
Usage
wpsc_init();
wpsc_init() wpsc init code WPSCache 1.12.4
function wpsc_init() { global $wp_cache_config_file, $wp_cache_config_file_sample, $wpsc_advanced_cache_dist_filename, $wp_cache_check_wp_config, $wpsc_advanced_cache_filename, $wpsc_promo_links; if ( ! defined( 'WPCACHECONFIGPATH' ) ) { define( 'WPCACHECONFIGPATH', WP_CONTENT_DIR ); } $wp_cache_config_file = WPCACHECONFIGPATH . '/wp-cache-config.php'; // Centralise the promotional links to other products $wpsc_promo_links = array( 'boost' => 'https://jetpack.com/boost/?utm_source=wporg&utm_medium=plugin&utm_campaign=wp-super-cache&utm_id=wp-super-cache', 'photon' => 'https://jetpack.com/features/design/content-delivery-network/?utm_source=wporg&utm_medium=plugin&utm_campaign=wp-super-cache&utm_id=wp-super-cache', 'videopress' => 'https://jetpack.com/videopress/?utm_source=wporg&utm_medium=plugin&utm_campaign=wp-super-cache&utm_id=wp-super-cache', 'crowdsignal' => 'https://crowdsignal.com/?utm_source=wporg&utm_medium=plugin&utm_campaign=wp-super-cache&utm_id=wp-super-cache', 'jetpack' => 'https://jetpack.com/?utm_source=wporg&utm_medium=plugin&utm_campaign=wp-super-cache&utm_id=wp-super-cache', ); if ( !defined( 'WPCACHEHOME' ) ) { define( 'WPCACHEHOME', __DIR__ . '/' ); $wp_cache_config_file_sample = WPCACHEHOME . 'wp-cache-config-sample.php'; $wpsc_advanced_cache_dist_filename = WPCACHEHOME . 'advanced-cache.php'; } elseif ( realpath( WPCACHEHOME ) != realpath( __DIR__ ) ) { $wp_cache_config_file_sample = __DIR__. '/wp-cache-config-sample.php'; $wpsc_advanced_cache_dist_filename = __DIR__. '/advanced-cache.php'; if ( ! defined( 'ADVANCEDCACHEPROBLEM' ) ) { define( 'ADVANCEDCACHEPROBLEM', 1 ); // force an update of WPCACHEHOME } } else { $wp_cache_config_file_sample = WPCACHEHOME . 'wp-cache-config-sample.php'; $wpsc_advanced_cache_dist_filename = WPCACHEHOME . 'advanced-cache.php'; } $wpsc_advanced_cache_filename = WP_CONTENT_DIR . '/advanced-cache.php'; if ( !defined( 'WP_CACHE' ) || ( defined( 'WP_CACHE' ) && constant( 'WP_CACHE' ) == false ) ) { $wp_cache_check_wp_config = true; } }