Title: wp_register_icon_collection
Published: August 20, 2026

---

# wp_register_icon_collection( string $slug, array $args ): bool

## In this article

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

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

Registers a new icon collection.

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

 `$slug`stringrequired

Icon collection slug.

`$args`arrayrequired

Arguments for registering an icon collection.

 * `label` string
 * Required. A human-readable label for the icon collection.
 * `description` string
 * Optional. A human-readable description for the icon collection.

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

 bool True if the icon collection was registered successfully, else false.

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

    ```php
    function wp_register_icon_collection( $slug, $args ) {
    	return WP_Icon_Collections_Registry::get_instance()->register( $slug, $args );
    }
    ```

[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#L24)
[View on GitHub](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/icons.php#L24-L26)

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

| Uses | Description | 
| [WP_Icon_Collections_Registry::get_instance()](https://developer.wordpress.org/reference/classes/wp_icon_collections_registry/get_instance/)`wp-includes/class-wp-icon-collections-registry.php` |

Utility method to retrieve the main instance of the class.

  |

| Used by | Description | 
| [_wp_register_default_icon_collections()](https://developer.wordpress.org/reference/functions/_wp_register_default_icon_collections/)`wp-includes/icons.php` |

Registers the default icon collections.

  |

## 󠀁[Changelog](https://developer.wordpress.org/reference/functions/wp_register_icon_collection/?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_register_icon_collection%2F)
before being able to contribute a note or feedback.