WP_CLI

WpHttpCacheManager::__construct()publicWP-CLI 1.0

Метод класса: WpHttpCacheManager{}

Хуков нет.

Возвращает

null. Ничего.

Использование

$WpHttpCacheManager = new WpHttpCacheManager();
$WpHttpCacheManager->__construct( $cache );
$cache(FileCache) (обязательный)
-

Код WpHttpCacheManager::__construct() WP-CLI 2.8.0-alpha

public function __construct( FileCache $cache ) {
	$this->cache = $cache;

	// hook into wp http api
	add_filter( 'pre_http_request', [ $this, 'filter_pre_http_request' ], 10, 3 );
	add_filter( 'http_response', [ $this, 'filter_http_response' ], 10, 3 );
}