On this page
WP_Http_Cookie::get_attributes(): array
Retrieves cookie attributes.
Return
array List of attributes.
expiresstring|int|nullWhen the cookie expires. Unix timestamp or formatted date.pathstringCookie URL path.domainstringCookie domain.
Source
File: wp-includes/class-wp-http-cookie.php. View all references
public function get_attributes() {
return array(
'expires' => $this->expires,
'path' => $this->path,
'domain' => $this->domain,
);
}
Changelog
| Version | Description |
|---|---|
| 4.6.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_http_cookie/get_attributes