WP_Icons_Registry::is_registered │ public │ WP 7.0.0

Checks if an icon is registered.

Метод класса: WP_Icons_Registry{}

Хуков нет.

Возвращает

bool. True if the icon is registered, false otherwise.

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

$WP_Icons_Registry = new WP_Icons_Registry();
$WP_Icons_Registry->is_registered( $icon_name );
$icon_name(строка) (обязательный)
Icon name including namespace.

Список изменений

С версии 7.0.0 Введена.

Код WP_Icons_Registry::is_registered() WP 7.1.2

public function is_registered( $icon_name ) {
	return isset( $this->registered_icons[ $icon_name ] );
}