Title: wp_unregister_icon
Published: August 20, 2026

---

# wp_unregister_icon( string $icon_name ): bool

## In this article

 * [Parameters](https://developer.wordpress.org/reference/functions/wp_unregister_icon/?output_format=md#parameters)
 * [Return](https://developer.wordpress.org/reference/functions/wp_unregister_icon/?output_format=md#return)
 * [Source](https://developer.wordpress.org/reference/functions/wp_unregister_icon/?output_format=md#source)
 * [Related](https://developer.wordpress.org/reference/functions/wp_unregister_icon/?output_format=md#related)
 * [Changelog](https://developer.wordpress.org/reference/functions/wp_unregister_icon/?output_format=md#changelog)

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

Unregisters an icon.

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

 `$icon_name`stringrequired

Namespaced icon name in the form "collection/icon-name" (e.g. "core/arrow-left").

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

 bool True if the icon was unregistered successfully, else false.

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

    ```php
    function wp_unregister_icon( $icon_name ) {
    	return WP_Icons_Registry::get_instance()->unregister( $icon_name );
    }
    ```

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

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

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

Utility method to retrieve the main instance of the class.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_unregister_icon/?output_format=md#changelog)󠁿

| Version | Description | 
| [7.1.0](https://developer.wordpress.org/reference/since/7.1.0/) | Introduced. |

## User Contributed Notes

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