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
- Introduced in Jetpack 0.12.0