This code will do the trick. Create a file, jetpack-hide.php (or another name of your choosing) and upload it to wp-content/mu-plugins (create that directory if it doesn’t exist).
add_action( 'jetpack_admin_menu', 'hide_jetpack_from_others' );
function hide_jetpack_from_others() {
if ( ! current_user_can( 'administrator' ) ) {
remove_menu_page( 'jetpack' );
}
}
To re-enable JetPack for all users, simply delete that file, or rename it. I usually append .OFF to a mu-plugin that I want to disable, e.g., jetpack-hide.php.OFF.
Related Posts:
- How to disable Jetpack modules such as Stats?
- Cannot activate Jetpack on my server
- Jetpack Infinite Scrolling For Multiple Columns On Same Page?
- Popular posts by view with Jetpack
- Gravatar Hovercards (Jetpack) jQuery error
- Jetpack – stats_get_csv period parameter
- Using stats_get_csv to return a list of popular posts by views with thumbnails
- How do I update the site URL used by Jetpack subscribe widget [closed]
- Isotope with Infinite Scroll
- Jetpack infinite scroll not working on Twenty Twelve [closed]
- Can’t connect to my WordPress website using Windows 8 app?
- What does this number represent in JetPack stats? [closed]
- I have a self hosted blog but now the WordPress.com stats plugin has stopped working
- jetpack suddendly stopped working [closed]
- Jetpack social icons in other places on site
- Why I can’t modified jetpack default blank.jpg on og:image?
- How to remove WordPress’ Jetpack plugin completely? [duplicate]
- How do I remove quantcast from my sites?
- Customizing JetPack Publicize Sharing
- Jetpack infinite scroll not working on twentysixteen custom theme
- Change $content_width based on screen size (functions.php)
- Jetpack button location buffering [closed]
- Does Jetpack conflicts with load_template()?
- How do i import email addresses into WordPress.com subscriptions? [closed]
- Hiding Jetpack Ads from users who are signed in?
- Jetpack Infinite Scroll – changing number of posts
- How to allow users to write jetpack custom post types? [closed]
- Missing Jetpack Contact Form button when running locally [closed]
- Why does Jetpack insert it’s script outside the tag?
- Updating shortlinks from staging [closed]
- Jetpack Publicize and Android
- How can I get the Jetpack Image plugin to open links in a new window? [closed]
- Infinite Scroll on Self-hosted WordPress [closed]
- How to remove Stats by jetpack dashboard widget?
- Publicize in Jetpack stopped working on Custom Post Type it works in Blog Posts
- Jetpack Top post widget (display post views)
- Unable to setup jetpack on my site
- Where does Jetpack store markdown?
- The plugin jetpack/jetpack.php has been deactivated due to an error: Plugin file does not exist
- Jetpack URL shortening, fixing after website URL change
- Infinite scroll function for Twenty Seventeen
- how to disable jetpack for non admins?
- Popular posts – based on pageviews
- Implementing backbone.js to retrieve category posts using JSON API
- Jetpack email sharing button to include image on email sent
- Is there a way to enable a Jetpack module via `functions.php`
- Pageview confusion [closed]
- Jetpack Infinite Scroll, Isotope and ImagesLoaded
- Force Jetpack to not use og:image tag for favicon / Site Icon [closed]
- Using Jetpack to track an Ajax powered blog [closed]
- Jetpack: Access visitor stats in templete
- Generate Sitemap after removing JetPack
- How to run Jetpack from localhost? [closed]
- Get ‘page’ number with infinite scroll
- Is “Featured Content” in Twenty Fourteen done with a plugin, or is it native in WP4.0?
- Trying to get custom post meta through Jetpack JSON API [closed]
- Jetpack plugin (ShareDaddy): Prevent share buttons showing on custom post types?
- Setting Login with User Name and Password default option for Jetpack Admin Login
- Jetpack infinite scroll render – make different depending on post type?
- Allow latex in wordpress excerpt
- Implications of changing wordpress.com associated with Jetpack [closed]
- Infinite Scroll not working in own theme
- Optimizing Jetpack for WordPress [closed]
- Compatibility of MathJax extension and JetPack [closed]
- Jetpack Upgrade fails with WP CLI [closed]
- Masonry and Jetpack Infinite Scroll – overlap issue
- Jetpack API for WordPress Network
- Jetpack’s photon causes local site to try and serve images from WordPress CDN [closed]
- Jetpack post types Portfolio or Testimonials support for custom fields?
- Adding character count and limit in comments, modifying labels and fields – jetpack
- infinite-scroll for 2 fixed height containers
- Filtering get_permalink in Jetpack / ShareDaddy
- strange behavior with comment position
- How to have Tiled Galleries like in WordPress.com?
- Using Jetpack carousel w/o creating a gallery [closed]
- Change description of my Jetpack facebook shared links [closed]
- Is it possible to remove subscription box from Jetpack stats page? [closed]
- Edit / Change Jetpack Mobile Theme [closed]
- Moving Jetpack buttons to appear below the first H2 title on all project/post pages [closed]
- Jetpack JSON API configure button not showing [closed]
- Jetpack Infinite Scroll won’t fire [closed]
- Adding comments section to website integrated WordPress instance
- Does Jetpack store comments in local database also? [closed]
- WordPress Stats Plugin: Display Post Views [closed]
- After installing JetPack, can I delete the WordPress stats plugin?
- Hooked into wp_get_attachment_caption to add content to the default description; not working for jetpack slideshow. Why?
- Uncaught TypeError: r is not a function
- Solved – Inserting content inside the WordPress loop
- Jetpack gallery shortcode with slideshow
- Why 2 home pages?
- Increase load-out-page speed
- Add disclaimer before certain posts and pages
- Jetpack: Display Site Title when no Site Logo
- Jetpack Comments Change Placeholder Text
- Disable Jetpack Publicize for blog but keep for custom post type [closed]
- Featured posts and the loop
- How to delete Jetpack Widgets from the Widgets page in admin panel [closed]
- Jetpack Connection Broken [closed]
- Questions about using Disqus or Jetpack for comments [closed]
- Make Jetpack CDN to filter/ignore images based on SRC [closed]