WP_Icon_Collections_Registry::is_registered
Checks if an icon collection is registered.
Метод класса: WP_Icon_Collections_Registry{}
Хуков нет.
Возвращает
bool. True if the icon collection is registered, false otherwise.
Использование
$WP_Icon_Collections_Registry = new WP_Icon_Collections_Registry(); $WP_Icon_Collections_Registry->is_registered( $collection_slug );
- $collection_slug(строка|null) (обязательный)
- Icon collection slug.
Список изменений
| С версии 7.1.0 | Введена. |
Код WP_Icon_Collections_Registry::is_registered() WP Icon Collections Registry::is registered WP 7.1.2
public function is_registered( $collection_slug ) {
return isset( $collection_slug, $this->registered_collections[ $collection_slug ] );
}