WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru Купить персональные IPV4 и IPV6 прокси
функция не описана

Requests_Cookie::format_for_set_cookie() WP 1.0

Format a cookie for a Set-Cookie header

This is used when sending cookies to clients. This isn't really applicable to client-side usage, but might be handy for debugging.

Это метод класса: Requests_Cookie

Хуков нет.

Возвращает

Строку. Cookie formatted for Set-Cookie header

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

$Requests_Cookie = new Requests_Cookie();
$var = $Requests_Cookie->format_for_set_cookie();

Код Requests Cookie::format for set cookie: wp-includes/Requests/Cookie.php WP 5.2.2

<?php
public function format_for_set_cookie() {
	$header_value = $this->format_for_header();
	if (!empty($this->attributes)) {
		$parts = array();
		foreach ($this->attributes as $key => $value) {
			// Ignore non-associative attributes
			if (is_numeric($key)) {
				$parts[] = $value;
			}
			else {
				$parts[] = sprintf('%s=%s', $key, $value);
			}
		}

		$header_value .= '; ' . implode('; ', $parts);
	}
	return $header_value;
}