• filter

    jetpack_stats_url

    Filters a link to a Stats page, so a newer analytics dashboard can claim it. `$args[‘view’]` names the page the link opens: `dashboard`, or `post` with the post in `$args[‘id’]`. Return `$url` unchanged for a view the dashboard has no page for.

  • 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`.

  • filter

    DASHBOARD_INSERTABLE_WIDGET_TYPES_FILTER

    Filters the widget types a dashboard section’s inserter offers on top of its default layout. Runs for every section, so a callback adding a type to one switches on `$section_id`. A type the widget type registry does not know is never offered.

  • filter

    self::FIELDS_FILTER

    Filters the Stats settings the dashboard’s Settings tab and the settings route offer, and whether the tab shows the visitor consent card.