WP_Icons_Registry::is_registeredpublicWP 1.0

Checks if an icon is registered.

Method of the class: WP_Icons_Registry{}

No Hooks.

Returns

true|false. True if the icon is registered, false otherwise.

Usage

$WP_Icons_Registry = new WP_Icons_Registry();
$WP_Icons_Registry->is_registered( $icon_name );
$icon_name(string) (required)
Icon name including namespace.

WP_Icons_Registry::is_registered() code WP 7.0

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