After 8 long years this plugin has finally got it’s update!
There 2 new things from Jetpack that are now also hidden, the bottom right question mark button and the dashboard widget.
Some of the items we’re hiding are hidden by CSS only, and that could be further improved, so you can expect another update soon.
The plugin will be maintained from now on.
]]>I mean, after 4 years it still works, but could be nice to have the peace of mind of an update assuring it is 100% compatible. Could you do that?
Thanks in advance!
Wish someone would update this plugin, causes issues with the ‘Choose from the most used tags’ option on posts.
Warning: Invalid argument supplied for foreach() in /home/xxx/public_html/wp-admin/includes/plugin.php on line 1445
https://www.ads-software.com/plugins/jetpack-only-for-admins/
]]>generates transient excess in the table wp_options and slow access to authors up to block the work
https://www.ads-software.com/plugins/jetpack-only-for-admins/
]]>jetpack page is still in the menu for non admins
https://www.ads-software.com/plugins/jetpack-only-for-admins/
]]>When this plugin is enabled I get this error on woocomemrce checkout page.
Warning: Invalid argument supplied for foreach() in /home/answenzz/public_html/wp-admin/includes/plugin.php
https://www.ads-software.com/plugins/jetpack-only-for-admins/
]]>The current version of the plugin (1.1) will remove visual indication of the existence of Jetpack, but not capabilities. So a subscriber may get to the JP page by entering: /admin.php?page=jetpack
in the url.
To block this, simply edit the plugin’s single php file, and add at the end the following code:
`
function jp_forbidden_pages() {
if( class_exists( ‘Jetpack’ ) && !current_user_can( ‘manage_options’ ) ) {
$forbidden_pages = array(‘jetpack’, ‘omnisearch’, ‘stats’);if ( isset($_GET[‘page’]) ) {
$page = preg_replace( ‘/[^0-9a-zA-Z_-]/’, ”, $_GET[‘page’] );
if ( in_array($page, $forbidden_pages) )
wp_die(__(‘You do not have sufficient permissions to access this page.’));
}
}
}
add_action( ‘admin_init’, ‘jp_forbidden_pages’ );
`
This will send non-admins to the default wp “access denied” page, if they enter the following jetpack submenus:
/admin.php?page=jetpack
/admin.php?page=omnisearch
/admin.php?page=stats
https://www.ads-software.com/plugins/jetpack-only-for-admins/
]]>This could be the source of other bugs reported here.
We are getting a debug warning that breaks AJAX responses, even though WP_DEBUG is off. Here is a fix:
* Updated to use the fix suggested here: https://www.ads-software.com/support/topic/warning-while-using-wp-cli *
Version: 1.1, file jp-rm-jpmenu.php, line 36:
add_action( 'admin_init', 'jp_rm_menu' );
Change to:
add_action( 'admin_menu', 'jp_rm_menu' );
The error we are seeing is in remove_menu_page():
<b>Warning</b>: Invalid argument supplied for foreach() in <b>.../wp-admin/includes/plugin.php</b> on line <b>1375</b><br />
https://www.ads-software.com/plugins/jetpack-only-for-admins/
]]>The plugin is blocking editors from adding media to posts. When editors try to view media library from a post, the library appears empty. When they go to the media tab from the left menu, they can see the whole library. When editors try to upload a media file while editing a post, it uploads. But when they click insert to post, the post appears with no media inserted. When I deactivate the plugin, these problems go away. When I activate the plugin, all these problems come back.
I am also having a problem with Post-by-Email rejecting media, and I think it’s related to this plugin, but that will require more experimentation before I can confirm.
https://furryfriendsvetclinic.nwsltr.info
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>The remove page gets called on admin_init
while it should be call on admin_menu
, right?
When I hook it there the warning
PHP Warning: Invalid argument supplied for foreach() in /Users/jaime/projects/new-scientist/httpdocs/wp-admin/includes/plugin.php on line 1290
goes away.
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>This plugin did a lot for taking JetPack admin-type prompts away from my editors, but I notice that editors are still being invited to set up post by email in their profile settings and they are still being invited to set up Publicize in the Settings. I think JetPack is doing this. Can we hide these prompts as well?
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>Hi.
This plugins causes a conflict with WooCommerce. On the checkout page, when a user is not logged in, it is not possible to review order and pay.
Here is a fix for that:
remove_action( 'admin_init', 'jp_rm_menu' );
add_action( 'admin_init', 'jetpack_remove_menu' );
/**
* Remove Jetpack from admin menu.
* Fix for Jetpack only for admins plugin and WooCommerce conflict.
*/
function jetpack_remove_menu() {
if( class_exists( 'Jetpack' ) && !current_user_can( 'manage_options' ) ) {
if( is_admin() && is_user_logged_in() ){
// This removes the page from the menu in the dashboard
remove_menu_page( 'jetpack' );
}
}
}
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>Thank you. This was a big help. I think JetPack is also causing my editors to see sharing options in the settings menu (and it’s threatening to turn on Publicize). Can configure the plugin to hide this as well?
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>I’ve used this plugin in order to disable that annoying bar of jetpack in user menu, but if i enable this plugin, then doesn’t work the login with sidebar login (going in loop).
Please fix this.
Thanks
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>I love this idea – count me as another who thinks Jetpack should be hidden from all but the Admins, regardless of whether others can “do” anything with it or not.
However, I’m using the Sidebar Login plugin, and when this Hide Jetpack is enabled it breaks it’s functioning. When you try to log-in with this sidebar plugin, it just “spins” and never goes anywhere. (I have to go back to wp-login.php to access the site.) Once “Hide Jetpack” is disabled, it works again.
Sorry to report this – and it’s not a really big deal – but hopefully Automatic will see the wisdom of hiding this from non-admins! (See me holding my breath?)
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>I’d like this plugin, but it block quick chat plugin.
Only admin can see quick chat when Jetpack Only for Admins is activated.
I need Jetpack Only for Admins working ONLY on dashboard not blockink other plugins.
Thanks.
https://www.ads-software.com/extend/plugins/jetpack-only-for-admins/
]]>