# Hide the Jetpack Menu From Non-Administrators

> Removes the Jetpack menu (and its dashboard widget) for authors, editors and other roles that cannot manage options, so they only see what they need.

- Type: PHP
- Runs: Admin only
- Category: [Plugin Integrations](https://wpide.com/library/category/integrations/)
- Tags: jetpack, admin-menu, roles
- Author: WPIDE Team
- Installs: 0
- Updated: 2026-10-28
- Page: https://wpide.com/library/jetpack-hide-menu-non-admins/

## Code

```php
add_action( 'admin_menu', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        remove_menu_page( 'jetpack' );
    }
}, 999 );

add_action( 'wp_dashboard_setup', function () {
    if ( ! current_user_can( 'manage_options' ) ) {
        remove_meta_box( 'jetpack_summary_widget', 'dashboard', 'normal' );
    }
}, 999 );
```

## Notes

Administrators still see everything.

## How to use it

Install the free WPIDE plugin (https://wordpress.org/plugins/wpide/), find "Hide the Jetpack Menu From Non-Administrators" in its snippet library and add it in one click; or create a new PHP snippet in WPIDE (or any code snippets plugin) and paste the code above. More snippets: https://wpide.com/library/
