Last active

Hide Jetpack menu from Subscribers

  • Download Gist
1 2 3 4 5 6 7 8 9 10
function jetpack_hide_from_subscribers() {
if ( ! current_user_can('edit_posts') ) {
remove_menu_page( 'jetpack' );
add_action('jetpack_admin_menu', 'jetpack_hide_from_subscribers');

I found this code on You said: "To install, I would create a file in mu-plugins named jetpack-tweaks.php and add the code. While there is a chance that this tweak could break after an upgrade, it is unlikely and won't negatively impact your site" What is mu when you say mu-plugins? And can this be placed in the functions php file instead? If not could you be more specific as to where to place it?

Please sign in to comment on this gist.

Something went wrong with that request. Please try again.