WP_Super_Cache_Rest_Get_Status::add_compression_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_compression_status( $status );
$status(array) (required) (passed by reference — &)
-

Code of WP_Super_Cache_Rest_Get_Status::add_compression_status() WPSCache 1.8

protected function add_compression_status( & $status ) {
	if ( defined( 'WPSC_DISABLE_COMPRESSION' ) ) {
		$status['compression_disabled_by_admin'] = true;
	} elseif ( false == function_exists( 'gzencode' ) ) {
		$status['compression_disabled_no_gzencode'] = true;
	}
}