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.

Parameters

$states
array

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

$menu_items
array

The registered menu items, for context.

Changelog

How to use this hook

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