| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Icons API: WP_Icon_Collections_Registry class
| File Size: | 227 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
WP_Icon_Collections_Registry:: (6 methods):
register()
unregister()
get_registered()
get_all_registered()
is_registered()
get_instance()
Class: WP_Icon_Collections_Registry - X-Ref
Core class used for interacting with registered icon collections.| register( $collection_slug, $collection_properties ) X-Ref |
| Registers an icon collection. param: string $collection_slug Icon collection slug. param: array $collection_properties { return: bool True if the collection was registered successfully, false otherwise. |
| unregister( $collection_slug ) X-Ref |
| Unregisters an icon collection. Any icons registered under the given collection are also unregistered. param: string $collection_slug Icon collection slug. return: bool True if the collection was unregistered successfully, false otherwise. |
| get_registered( $collection_slug ) X-Ref |
| Retrieves an array containing the properties of a registered icon collection. param: string $collection_slug Icon collection slug. return: array|null Registered collection properties, or `null` if the collection is not registered. |
| get_all_registered() X-Ref |
| Retrieves all registered icon collections. return: array[] Array of arrays containing the registered icon collections properties. |
| is_registered( $collection_slug ) X-Ref |
| Checks if an icon collection is registered. param: string|null $collection_slug Icon collection slug. return: bool True if the icon collection is registered, false otherwise. |
| get_instance() X-Ref |
| Utility method to retrieve the main instance of the class. The instance will be created if it does not exist yet. return: WP_Icon_Collections_Registry The main instance. |
| Generated : Wed Jul 15 08:20:16 2026 | Cross-referenced by PHPXref |