Requests_Cookie_Jar::normalize_cookie()publicWP 1.0

Normalise cookie data into a Requests_Cookie

{} It's a method of the class: Requests_Cookie_Jar{}

No Hooks.

Return

Requests_Cookie.

Usage

$Requests_Cookie_Jar = new Requests_Cookie_Jar();
$Requests_Cookie_Jar->normalize_cookie( $cookie, $key );
$cookie(string|Requests_Cookie) (required)
-
$key **
-
Default: null

Code of Requests_Cookie_Jar::normalize_cookie() WP 6.0

public function normalize_cookie($cookie, $key = null) {
	if ($cookie instanceof Requests_Cookie) {
		return $cookie;
	}

	return Requests_Cookie::parse($cookie, $key);
}