Yoast\WP\SEO\Introductions\Application
Introductions_Collector::is_available_introduction()
Checks if the given introduction ID is a known ID to the system.
Метод класса: Introductions_Collector{}
Хуков нет.
Возвращает
true|false
.
Использование
$Introductions_Collector = new Introductions_Collector(); $Introductions_Collector->is_available_introduction( $introduction_id ): bool;
- $introduction_id(строка) (обязательный)
- The introduction ID to check.
Код Introductions_Collector::is_available_introduction() Introductions Collector::is available introduction Yoast 24.4
public function is_available_introduction( string $introduction_id ): bool { foreach ( $this->introductions as $introduction ) { if ( $introduction->get_id() === $introduction_id ) { return true; } } return false; }