WP_Http_Cookie::get_attributes

Advertisement

Summery Summery

Retrieves cookie attributes.

Syntax Syntax

WP_Http_Cookie::get_attributes()

Return 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 Source

File: wp-includes/class-wp-http-cookie.php

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

Advertisement

Changelog Changelog

Changelog
Version Description
4.6.0 Introduced.

Advertisement

Leave a Reply

This site uses Akismet to reduce spam. Learn how your comment data is processed.

What are you looking for?