WP_Super_Cache_Rest_Get_Status::add_preload_status()protectedWPSCache 1.0

{} It's a method of the class: WP_Super_Cache_Rest_Get_Status{}

No Hooks.

Return

null. Nothing.

Usage

// protected - for code of main (parent) or child class
$result = $this->add_preload_status( $status );
$status(array) (required) (passed by reference — &)
-

Code of WP_Super_Cache_Rest_Get_Status::add_preload_status() WPSCache 1.9

protected function add_preload_status( & $status ) {
	global $wp_cache_config_file;

	include( $wp_cache_config_file );

	if ( false == $cache_enabled ) {
		$status[ 'preload_disabled_cache_off' ] = true;
	}
	if ( false == $super_cache_enabled ) {
		$status[ 'preload_disabled_supercache_off' ] = true;
	}
	if ( true === defined( 'DISABLESUPERCACHEPRELOADING' ) ) {
		$status[ 'preload_disabled_by_admin' ] = true;
	}
}