WP_Http_Cookie::get_attributes(): array

In this article

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

public function get_attributes() {
	return array(
		'expires' => $this->expires,
		'path'    => $this->path,
		'domain'  => $this->domain,
	);
}

Changelog

VersionDescription
4.6.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.