WP_Http_Cookie::get_attributes(): array
Retrieves cookie attributes.
Contents
Return
array List of attributes.
expires
string|int|nullWhen the cookie expires. Unix timestamp or formatted date.path
stringCookie URL path.domain
stringCookie 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. |