GC_Http_Cookie::get_attributes()

最后更新于:2021-12-01 11:13:17

GC_()

Retrieves cookie attributes.

响应

(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.

源文件

文件: gc-includes/class-gc-http-cookie.php

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