WP_Http_Cookie::test

SummerySummery

Confirms that it’s OK to send this cookie to the URL checked against.

Syntax

WP_Http_Cookie::test( string $url )

DescriptionDescription

Decision is based on RFC 2109/2965, so look there for details on validity.

ParametersParameters

$url

(string) (Required) URL you intend to send this cookie to

ReturnReturn

(bool) true if allowed, false otherwise.

SourceSource

File: wp-includes/class-wp-http-cookie.php


			

ChangelogChangelog

Changelog
Version Description
2.8.0 Introduced.
Scroll to Top