In this article

filter

jetpack_wp_abilities_should_register

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

How to use this hook

See “How to use actions and filters to customize Jetpack”.