| [ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Abilities API Defines WP_Ability_Categories_Registry class.
| File Size: | 256 lines (7 kb) |
| Included or required: | 0 times |
| Referenced: | 0 times |
| Includes or requires: | 0 files |
| register( string $slug, array $args ) X-Ref |
| Registers a new ability category. Do not use this method directly. Instead, use the `wp_register_ability_category()` function. param: string $slug The unique slug for the ability category. Must contain only lowercase param: array<string, mixed> $args { return: WP_Ability_Category|null The registered ability category instance on success, null on failure. |
| unregister( string $slug ) X-Ref |
| Unregisters an ability category. Do not use this method directly. Instead, use the `wp_unregister_ability_category()` function. param: string $slug The slug of the registered ability category. return: WP_Ability_Category|null The unregistered ability category instance on success, null on failure. |
| get_all_registered() X-Ref |
| Retrieves the list of all registered ability categories. Do not use this method directly. Instead, use the `wp_get_ability_categories()` function. return: array<string, WP_Ability_Category> The array of registered ability categories. |
| is_registered( string $slug ) X-Ref |
| Checks if an ability category is registered. Do not use this method directly. Instead, use the `wp_has_ability_category()` function. param: string $slug The slug of the ability category. return: bool True if the ability category is registered, false otherwise. |
| get_registered( string $slug ) X-Ref |
| Retrieves a registered ability category. Do not use this method directly. Instead, use the `wp_get_ability_category()` function. param: string $slug The slug of the registered ability category. return: WP_Ability_Category|null The registered ability category instance, or null if it is not registered. |
| get_instance() X-Ref |
| Utility method to retrieve the main instance of the registry class. The instance will be created if it does not exist yet. return: WP_Ability_Categories_Registry|null The main registry instance, or null when `init` action has not fired. |
| __wakeup() X-Ref |
| Wakeup magic method. |
| __sleep() X-Ref |
| Sleep magic method. |
| Generated : Tue May 5 08:20:14 2026 | Cross-referenced by PHPXref |