WP_CLI
WpHttpCacheManager::__construct
Метод класса: WpHttpCacheManager{}
Хуков нет.
Возвращает
null. Ничего (null).
Использование
$WpHttpCacheManager = new WpHttpCacheManager(); $WpHttpCacheManager->__construct( $cache );
- $cache(FileCache) (обязательный)
- .
Код WpHttpCacheManager::__construct() WpHttpCacheManager:: construct WP-CLI 2.13.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 );
}