WordPress at a glance
function is not described

Requests_Cookie_Jar::normalize_cookie() public WP 1.0

Normalise cookie data into a Requests_Cookie

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

No Hooks.


Requests_Cookie. Nothing.


$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 5.7.2

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

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