Removes a previously registered ability from the global registry. Use this to disable abilities provided by other plugins or when an ability is no longer needed. Can be called at any time after the ability has been registered. Example: if ( wp_has_ability( 'other-plugin/some-ability' ) ) {
wp_unregister_ability( 'other-plugin/some-ability' );
}
Parameters
$namestring
The name of the ability to unregister, including namespace prefix (e.g., 'my-plugin/my-ability').
Return
WP_Ability|null
The unregistered ability 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.