Removes a previously registered ability category from the global registry. Use this to disable ability categories that are no longer needed. Can be called at any time after the ability category has been registered. Example: if ( wp_has_ability_category( 'deprecated-category' ) ) {
wp_unregister_ability_category( 'deprecated-category' );
}
Parameters
$slugstring
The slug of the ability category to unregister.
Return
WP_Ability_Category|null
The unregistered ability category instance on success, null on failure.
Signature, return type and hooks compared across 3 parsed releases.
About this page
Parsed data
Generated from the wordpress-develop 7.1.0 tag, from src/wp-includes/abilities-api.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.