WP_Http_Cookie::get_attributes
Retrieves cookie attributes.
Method of the class: WP_Http_Cookie{}
No Hooks.
Returns
Array. List of attributes.
Usage
$WP_Http_Cookie = new WP_Http_Cookie(); $WP_Http_Cookie->get_attributes();
Changelog
| Since 4.6.0 | Introduced. |
WP_Http_Cookie::get_attributes() WP Http Cookie::get attributes code WP 7.0
public function get_attributes() {
return array(
'expires' => $this->expires,
'path' => $this->path,
'domain' => $this->domain,
);
}