In this article

filter

jetpack_premium_analytics_enabled

Filters whether the bundled Premium Analytics dashboard is enabled. Read on `plugins_loaded`, and only while the Stats module is active. Register this from a mu-plugin or a plugin’s main file: a callback added on `plugins_loaded` or later runs too late.

Parameters

$enabled
bool

Defaults to the `jetpack_premium_analytics_enabled` option (false), or true once the classic Stats page is retired.

Changelog

How to use this hook

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