function hide_jetpack() { if (!current_user_can('connections_view_public')) { remove_menu_page( 'jetpack' ); } } add_action('jetpack_admin_menu', 'hide_jetpack');