| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Icons API: Icon registration and rendering helper functions.
| File Size: | 216 lines (6 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| wp_register_icon_collection( $slug, $args ) X-Ref |
| Registers a new icon collection. param: string $slug Icon collection slug. param: array $args { return: bool True if the icon collection was registered successfully, else false. |
| wp_unregister_icon_collection( $slug ) X-Ref |
| Unregisters an icon collection. param: string $slug Icon collection slug. return: bool True if the icon collection was unregistered successfully, else false. |
| wp_register_icon( $icon_name, $args ) X-Ref |
| Registers a new icon. param: string $icon_name Namespaced icon name in the form "collection/icon-name" param: array $args { return: bool True if the icon was registered successfully, else false. |
| wp_unregister_icon( $icon_name ) X-Ref |
| Unregisters an icon. param: string $icon_name Namespaced icon name in the form "collection/icon-name" return: bool True if the icon was unregistered successfully, else false. |
| _wp_register_default_icon_collections() X-Ref |
| Registers the default icon collections. |
| _wp_register_default_icons() X-Ref |
| Registers the default core icons from the manifest. |
| wp_get_icon( $name, $args = array() X-Ref |
| Returns the SVG markup for a registered icon. param: string $name The namespaced icon name (e.g. 'core/plus', param: array $args { return: string SVG markup for the icon, or empty string if not found. |
| Generated : Wed Jul 15 08:20:16 2026 | Cross-referenced by PHPXref |