Title: WP_Icons_Registry::is_registered
Published: May 20, 2026

---

# WP_Icons_Registry::is_registered( string $icon_name ): bool

## In this article

 * [Parameters](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#related)

[ Back to top](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#wp--skip-link--target)

Checks if an icon is registered.

## 󠀁[Parameters](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#parameters)󠁿

 `$icon_name`stringrequired

Icon name including namespace.

## 󠀁[Return](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#return)󠁿

 bool True if the icon is registered, false otherwise.

## 󠀁[Source](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#source)󠁿

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

[View all references](https://developer.wordpress.org/reference/files/wp-includes/class-wp-icons-registry.php/)
[View on Trac](https://core.trac.wordpress.org/browser/tags/7.0/src/wp-includes/class-wp-icons-registry.php#L291)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.0/src/wp-includes/class-wp-icons-registry.php#L291-L293)

## 󠀁[Related](https://developer.wordpress.org/reference/classes/wp_icons_registry/is_registered/?output_format=md#related)󠁿

| Used by | Description | 
| [WP_Icons_Registry::get_registered_icon()](https://developer.wordpress.org/reference/classes/wp_icons_registry/get_registered_icon/)`wp-includes/class-wp-icons-registry.php` |

Retrieves an array containing the properties of a registered icon.

  |

## User Contributed Notes

You must [log in](https://login.wordpress.org/?redirect_to=https%3A%2F%2Fdeveloper.wordpress.org%2Freference%2Fclasses%2Fwp_icons_registry%2Fis_registered%2F)
before being able to contribute a note or feedback.