WP_Icons_Registry::is_registered( string $icon_name ): bool

In this article

Checks if an icon is registered.

Parameters

$icon_namestringrequired
Icon name including namespace.

Return

bool True if the icon is registered, false otherwise.

Source

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

User Contributed Notes

You must log in before being able to contribute a note or feedback.