Requests_Cookie_Jar::register()publicWP 1.0

Register the cookie handler with the request's hooking system

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

Хуков нет.

Возвращает

null. Ничего.

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

$Requests_Cookie_Jar = new Requests_Cookie_Jar();
$Requests_Cookie_Jar->register( $hooks );
$hooks(Requests_Hooker) (обязательный)
Hooking system

Код Requests_Cookie_Jar::register() WP 6.1.1

public function register(Requests_Hooker $hooks) {
	$hooks->register('requests.before_request', array($this, 'before_request'));
	$hooks->register('requests.before_redirect_check', array($this, 'before_redirect_check'));
}