Filters whether an Abilities API category or ability should be registered. Returning false from any filter callback skips the registration, which is how consumers gate rollout per-site, per-user, or per feature flag. The filter fires once per category and once per individual ability, so callbacks can allow-list or deny-list by `$slug`.
Parameters
- $enabled
bool Whether to register. Default true.
- $type
string Either 'category' or 'ability'.
- $slug
string The category or ability slug being registered.
Changelog
- Introduced in Jetpack 0.1.0