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
- When would it make sense to use Jetpack?
- WP REST API no longer supports filter param, so how do I get posts in a custom taxonomy?
- Slow REST API calls on self-hosted WordPress [closed]
- How to tell if Jetpack’s Photon is active?
- Moving sharedaddy buttons (in Jetpack) to the top of a post?
- Update Failed: There has been a critical error on your website
- Customise Jetpack Publicize text
- Jetpack plugin – ‘posts_per_page’ not overriding ‘Blog pages show at most’ option, also different values for different post types?
- Custom post metadata not appearing in public API
- How can I show the Jetpack Subscriptions form in a page? [closed]
- API for Post Stats for Self-Hosted WordPress using JetPack [closed]
- Why Jetpack is missing the “Feedbacks” menu item? [closed]
- How do I get a list of popular posts by views?
- What is content.php file that is needed for Jetpack infinite scroll plugin?
- Enable infinite scroll on single.php [closed]
- Is it safe to delete uploaded photos if Photon (Jetpack) is activated?
- Facebook Like Button in Jetpack [closed]
- Removing the main link to Jetpack from the menu
- How to change the position of Jetpack sharing icons? [closed]
- What does it mean by “Home page / Archives” in JetPack Site Stats? [closed]
- Child Theme vs. Jetpack Editor
- Removal of Jetpack OG Tags from old blog site
- Jetpack Infinite Scroll – Add more than 7 posts each time?
- Remove ShareDaddy meta box from Pages only
- how to get jetpack’s infinite scroll to work with woocommerce?
- Changing sort order for presentation by Jetpack infinite scroll
- Filtering get_permalink in Jetpack / ShareDaddy
- Why does akismet prevent jetpack comments from appearing in my moderation queue? [closed]
- Remove “show sharing buttons” metabox Jetpack from custom post type
- 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]
- Jetpack could not contact wordpress [closed]
- Remove Jetpack infinite-wrap
- Jetpack JSON API configure button not showing [closed]
- Jetpack Infinite Scroll won’t fire [closed]
- Facebook and Twitter share buttons not working [closed]
- WordPress Stats Plugin: Display Post Views [closed]
- Failed to import “File name”: Invalid post type jetpack-portfolio
- Show views count for pop up post
- i1.wp.com url problem (Jetpack not installed)
- Jetpack Infinite Scroll Not Working
- Jetpack: Display Site Title when no Site Logo
- Comments template only linking to one post
- Disable Jetpack Publicize for blog but keep for custom post type [closed]
- Infinite scroll loads new posts several times
- Jetpack Connection Broken [closed]
- Force Jetpack to use og:url with http on an https website
- query posts only works on the first page