In this article

filter

jetpack_feature_flag_enabled_{$name}

Filters whether a specific Jetpack feature flag is enabled. The dynamic portion of the hook name, `$name`, refers to the feature flag name. This mirrors the WordPress `option_{$option}` convention so a single flag can be toggled with a `__return_true`/`__return_false` one-liner.

Parameters

$enabled
bool

Whether the flag is enabled.

$definition
array

Registered feature flag definition.

Changelog

How to use this hook

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