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