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

YoastSEO_Vendor\GuzzleHttp\Cookie

CookieJar::clear() public Yoast 1.0

{} Это метод класса: CookieJar{}

Хуков нет.

Возвращает

Null. Ничего.

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

$CookieJar = new CookieJar();
$CookieJar->clear( $domain, $path, $name );

Код CookieJar::clear() Yoast 15.6.2

<?php
public function clear($domain = null, $path = null, $name = null)
{
    if (!$domain) {
        $this->cookies = [];
        return;
    } elseif (!$path) {
        $this->cookies = \array_filter($this->cookies, function (\YoastSEO_Vendor\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) {
            return !$cookie->matchesDomain($domain);
        });
    } elseif (!$name) {
        $this->cookies = \array_filter($this->cookies, function (\YoastSEO_Vendor\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain) {
            return !($cookie->matchesPath($path) && $cookie->matchesDomain($domain));
        });
    } else {
        $this->cookies = \array_filter($this->cookies, function (\YoastSEO_Vendor\GuzzleHttp\Cookie\SetCookie $cookie) use($path, $domain, $name) {
            return !($cookie->getName() == $name && $cookie->matchesPath($path) && $cookie->matchesDomain($domain));
        });
    }
}