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

In this article

Registers a new icon collection.

Parameters

$slugstringrequired
Icon collection slug.
$argsarrayrequired
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

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

Source

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

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

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