WP_Icon_Collections_Registry::get_registered( string $collection_slug ): array|null

In this article

Retrieves an array containing the properties of a registered icon collection.

Parameters

$collection_slugstringrequired
Icon collection slug.

Return

array|null Registered collection properties, or null if the collection is not registered.

Source

public function get_registered( $collection_slug ) {
	if ( ! $this->is_registered( $collection_slug ) ) {
		return null;
	}

	return $this->registered_collections[ $collection_slug ];
}

Changelog

VersionDescription
7.1.0Introduced.

User Contributed Notes

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