How to remove the Jetpack admin menu from subscribers

JetPackThe Jetpack admin menu is visible to everybody, including subscribers. This may not be what you want. You may even want to hide it from other admins, perhaps once you’ve given a site over o a client and you don’t want him to switch off vital functionality by accident.

Here’s how you can hide the Jetpack admin menu in your WordPress back end.

Hide Jetpack from Non-Admins (including Subscribers)

If you would like your admin users to see Jetpack and hide it from everyone else, add this to your theme’s function.php file:

Here we test “is Jetpack actually running”, and if it is, “is this user an administrator”. If all signs point to yes then we’ll remove the menu page. You can replace “pinkstone” with another prefix of course.

Feel free to change the user capabilities to something else if you’d like to make Jetpack visible to authors or editors. You can read more about those options here:

You can also achieve this functionality by installing a super small plugin courtesy of Jeremy Herve, lead author of Jetpack:

Hide Jetpack from everybody

Here we remove the check for capabilities altogether, hiding Jetpack from all users:

I have included this functionality in my Zen Dash plugin with the latest version 1.4, where you can now hide Jetpack from admins and other users at the flick of a switch (and bring it back just as easily):

Have fun, and happy hacking 😉

About Jay Versluis

Jay is a medical miracle known as a Super Survivor. He runs two YouTube channels, five websites and several podcast feeds. To see what else he's up to, and to support him on his mission to make the world a better place, check out his Patreon Campaign.

6 thoughts on “How to remove the Jetpack admin menu from subscribers

  1. Any idea how to just remove the ‘link to’ section from a users profile page if they’re not an admin?

    1. Hi Robert, I don’t see that option with the JetPack menu. Are you sure it’s a self-hosted site? If it’s a site, the above fix won’t work (because we can’t patch a functions.php file).

      1. Yeah, it’s self hosted.

        I hid it with CSS in the end.

        Jetpack adds a link in the user edit screen to link your account to a wordpress account. I think it’s probably just for users with permission to create posts.
        We’re using theme my login to add frontend login and profile pages and I couldn’t find any way to get rid of the jetpack parts.

        1. For anyone who finds this post -> remove stuff from admin bar:

          function remove_admin_bar_links() {
          if (!current_user_can('edit_posts')) {
          global $wp_admin_bar;
          $wp_admin_bar->remove_menu('dashboard'); // Remove the dashboard link
          $wp_admin_bar->remove_menu('site-name'); // Remove the site name link
          $wp_admin_bar->remove_menu('wp-logo'); // Remove the WordPress logo
          $wp_admin_bar->remove_menu('about'); // Remove the about WordPress link
          $wp_admin_bar->remove_menu('wporg'); // Remove the link
          $wp_admin_bar->remove_menu('documentation'); // Remove the WordPress documentation link
          $wp_admin_bar->remove_menu('support-forums'); // Remove the support forums link
          $wp_admin_bar->remove_menu('feedback'); // Remove the feedback link
          $wp_admin_bar->remove_menu('updates'); // Remove the updates link
          $wp_admin_bar->remove_menu('comments'); // Remove the comments link
          $wp_admin_bar->remove_menu('new-content'); // Remove the content link
          $wp_admin_bar->remove_menu('my-account'); // Remove the user details tab
          add_action( 'wp_before_admin_bar_render', 'remove_admin_bar_links' );

Add your voice!