Yoast\WP\SEO\Introductions\Application
Introductions_Collector::is_seen()
Determines whether the user has seen the introduction.
Метод класса: Introductions_Collector{}
Хуков нет.
Возвращает
true|false
. Whether the user has seen the introduction.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_seen( $name, $metadata );
- $name(строка) (обязательный)
- The name.
- $metadata(string[]) (обязательный)
- The metadata.
Код Introductions_Collector::is_seen() Introductions Collector::is seen Yoast 24.4
private function is_seen( $name, $metadata ) { if ( \array_key_exists( $name, $metadata ) ) { return (bool) $metadata[ $name ]; } return false; }