Core Class
View Source on Trac ↗
Core Class
WP_Http_Cookie
class WP_Http_Cookie
// Constructor: function Object() { [native code] } Core class used to encapsulate a single cookie object for internal use.
Methods 5 methods
| Method / Return | Description |
|---|---|
| __construct() void | Sets up this cookie object.
Parameters: $data: mixed, $requested_url: mixed |
| test() bool | Confirms that it's OK to send this cookie to the URL checked against.
Parameters: $url: mixed |
| getHeaderValue() string | Convert cookie name and value back to header string. |
| getFullHeader() string | Retrieve cookie header for usage in the rest of the WordPress HTTP API. |
| get_attributes() array | Retrieves cookie attributes. |
Properties
| Property / Type | Description |
|---|---|
| $name mixed public | No description available. |
| $value mixed public | No description available. |
| $expires mixed public | No description available. |
| $path mixed public | No description available. |
| $domain mixed public | No description available. |
| $port mixed public | No description available. |
| $host_only mixed public | No description available. |
Class Information
Since Version
2.8.0
Source File
wp-includes/class-wp-http-cookie.php
Advertisement