WordPress at a glance
функция не описана

WP_Http_Cookie::get_attributes() public WP 4.6.0

Retrieves cookie attributes.

It's a method of the class: WP_Http_Cookie{}

Хуков нет.

Возвращает

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.

Использование

$WP_Http_Cookie = new WP_Http_Cookie();
$WP_Http_Cookie->get_attributes();

Changelog

Since 4.6.0 Introduced.

Код WP_Http_Cookie::get_attributes() WP 5.5.1

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