In this article

filter

jetpack_admin_menu_visibility

Filters which Jetpack items appear in the wp-admin sidebar. Governs the sidebar entry only — a hidden item’s page stays reachable by URL, so this is not an access control. States: ‘default’ follows the item’s feature, ‘visible’ shows it, ‘hidden’ removes it. `jetpack_feature_policy` runs after this. Item keys and examples: https://github.com/Automattic/jetpack/blob/trunk/projects/packages/admin-ui/README.md#host-control

Parameters

$states
array

Map of item key (menu slug unless the item declared one) to state.

$menu_items
array

The registered menu items, each with its menu_slug, capability, and args.

Changelog

How to use this hook

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