WP_Font_Library::is_collection_registered()
Checks if a font collection is registered.
Метод класса: WP_Font_Library{}
Хуков нет.
Возвращает
true|false
. True if the font collection is registered and false otherwise.
Использование
// private - только в коде основоного (родительского) класса $result = $this->is_collection_registered( $slug );
- $slug(строка) (обязательный)
- Font collection slug.
Список изменений
С версии 6.5.0 | Введена. |
Код WP_Font_Library::is_collection_registered() WP Font Library::is collection registered WP 6.7.1
private function is_collection_registered( string $slug ) { return array_key_exists( $slug, $this->collections ); }