[ Index ] |
PHP Cross Reference of WordPress Trunk (Updated Daily) |
[Source view] [Print] [Project Stats]
Abilities API Defines WP_Ability_Categories_Registry class.
File Size: | 254 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. return: WP_Ability_Category|null The registered ability category instance on success, null on failure. param: string $slug The unique slug for the ability category. Must contain only lowercase param: array<string, mixed> $args { |
unregister( string $slug ) X-Ref |
Unregisters an ability category. Do not use this method directly. Instead, use the `wp_unregister_ability_category()` function. return: WP_Ability_Category|null The unregistered ability category instance on success, null on failure. param: string $slug The slug of the registered ability category. |
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. return: bool True if the ability category is registered, false otherwise. param: string $slug The slug of the ability category. |
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. return: WP_Ability_Category|null The registered ability category instance, or null if it is not registered. param: string $slug The slug of the registered ability category. |
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 : Thu Oct 23 08:20:05 2025 | Cross-referenced by PHPXref |