In this article

filter

jetpack_stats_admin_pre_connection_dashboard

Filters whether Stats registers its own dashboard while the site is not connected. A host that offers its own Stats page before connection returns false, so the site does not show two Stats menus. Read when the package initializes, on `plugins_loaded`.

Parameters

$register
bool

Whether to register the pre-connection dashboard. Default true.

Changelog

How to use this hook

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