Requests_Cookie_Jar::register() WordPress Method

The register() method of the Requests_Cookie_Jar class is used to register a new cookie jar with the WordPress HTTP API. This is useful for storing and retrieving cookies from the WordPress HTTP API.

Requests_Cookie_Jar::register( Requests_Hooker $hooks ) #

Register the cookie handler with the request’s hooking system


Parameters

$hooks

(Requests_Hooker)(Required)Hooking system


Top ↑

Source

File: wp-includes/Requests/Cookie/Jar.php

	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'));
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.