WP_Http_Cookie::get_attributes()

Retrieves cookie attributes.


Return

(array) List of attributes.

  • 'expires'
    (string) When the cookie expires.
  • '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

Changelog
Version Description
WP-4.6.0 Introduced.