Code

Discussion on WordPress Hide Admin Menu Plugin

Discussion on WordPress Hide Admin Menu Plugin

Cart 1,014 sales

ProWCPlugins supports this item

Supported

This author's response time can be up to 1 business day.

144 comments found.

Hi mate,

I have done a full restart since it happened and the problem seems to have gone away. Must have conflicted with something in memory. Will take a screenshot if it comes back. Many thanks,

Dave

Hi, just bought your plugin and after submitting my choices for which menu items to disable I was greeted with the same warning message looped over and over again:

Notice: Array to string conversion in /Users/Quirksmode/#Files/Work/www/csr/csr_site/wp-content/plugins/hide-admin-menu/inc/admin-menu.php on line 116

I checked the code the problem seems to be coming from

// Remove top menu item $has_role = array_intersect( $current_user->roles, $option_top ); if ( !empty( $has_role ) ) unset( $menu[$i] );

Whilst I appreciate this is a warning and not an error, is there any chance you can provide a fix as its affecting the headers and stopping me from returning to the page everytime I submit.

thanks,

Dave

Hi, can you give me a screenshot of the whole error page? I test on my local & live sites and there’re no such errors.

I love this plugin. In 5 minutes I went from a mess to only showing the three options I want my client to touch. Well worth the money and 5 stars.

My only question may be more about WP users in general and not your specific plugin. I do not have the ability to select the main theme configuration nav item. It is at the very bottom of my admin (not in appearance), but even after installing members and even cloning admin, that item is missing for other users. Perhaps this is a theme setting to only show for true admin?

Thank you. In case anyone else runs into this, I was able to edit it in theme_config.php by searching for admin_menu and changed ‘administrator’ to ….’editor’, ‘theme-configuration’,... Apologies for the lack of PHP knowledge, but how do I also set it to ‘administrator’ so it shows up on both?

Don’t change from ‘administrator’ to something similar. It’s will limit users with that ROLE only. You should change it to CAPABILITY , such as ‘manage_options’ (for admin), or ‘edit_pages’ (for editor and admin), etc. Read more here: http://codex.wordpress.org/Roles_and_Capabilities

Thanks so much for the great support. edit_pages did exactly what I wanted.

i am not a very happy camper right now, i disactivated hide admin and now i cant even got some menus to show under my editor role.

As a previous reply to your comment, the menus doesn’t appear because editors don’t have proper capabilities. Not because of the Hide Admin Menu. When it’s deactivated, it simply doesn’t do anything (or more precisely: can’t do anything), just like any plugin.

i have a problem, on the editor role, i have two plug ins that show any boxes at all and dont show up at all on the menu, they are a photo album and guestbook plug in, i need them to show up under editor role, the name of the plug in shows up in hide admin but has no boxes at all

Hi otmweb,

As the name of the plugin, it does only the job of hiding menu items. The problem of not showing checkboxes for editor role is that the menu page is created for higher capability (such as manage_options) which editors don’t have. In that case, that menu page is not accessible for editor => no need to hide menu item as it’s already hidden.

Note that the accessibility of the menu page is set by other plugin. If you want to show those items, you need to contact the plugin developer, ask him to change the default capability for that menu page.

Or you can do a simple trick: Use a role editor plugin (such as Members), and adjust the capability for editors, add more capability for them to make them accessible to that menu page.

Hi, I was messing with it and tried to eliminate anything that had to do with theme as I am building it for a client. Well, the whole Appearance menu disappeared. So I couldn’t find it back to check nor uncheck the box. Then to fix it I decided to simply remove the plugin, well now the plugin is not installed but the Appearance menu never came back, which now no one can access other sub-menus like Widget, Menu, etc… What should I do now to get the whole entire Admin Panel back to normal? PS. I tried to re-update Wordpress version but it didn’t bring it back.

I suppose the problem doesn’t come from Hide Admin Menu. Because when it’s deactivated, it can’t do anything with the menu.

Some other plugins cause it, like WP-Insert that I met before. I’m not sure which one in your blog does it, but you can try deactivating/activating each of them to see the problem.

It would be nice to have admin as one of the roles as well. I use a theme with a lot of custom content types. They al have menu entrances. I use only half of them, so I would hide those I don’t use if that would be possible.

I guess I can create another admin and customize that role for myself, but I would rather have the option to modify the regular admin menu options. Is this something that could be added to a new version?

Hi,

Ideally, admin is the top priority role of the website, so admin can see anything. It’s just the basic concept.

But no problem if we change the menu for admin, too. I’ll add it in the next version.

Just want to let you know that the new version now can hide items for admins :)

Great, I’ll redownload it. Thanks! :-)

After spending countless hours trying to find a free plugin I came across your plug-in that killed all the other plugins.

It does exactly what I wanted and is the best $9 I have ever spent, thanks for making such a great plugin :)

Hi – slight issue…

I have installed your plugin on a site and now the content in the wysiwyg, is there, but has been whitened out? I also cannot switch between the visual and html views – strange huh?

BTW – I have deactivated all other plugins to test for conflict – but still the same?

I will shoot you the logins via a pm – could you have a quick look for me ASAP plesse?

Thanks.

Just contacted to you via email.

Question: I’ve used many of the ‘free’ versions but they often have bugs and don’t work correctly so I decided to pay for this plugin.

I like the simple interface for sure, BUT I ’m not sure why it won’t let me allow a user (an Editor in this case) to have access to Appearance (so he can edit the widgets), and the Gallery (in this case I uploaded the NexGen Gallery). However, it doesn’t give me the option to allow the Editor to access these areas.

Any ideas?

Hi mackmorg, In order to have access to ‘Appearance’, users need to have ‘edit_theme_options’ capability, which is available for ‘Administrator’ only (by default).

If you want to let ‘Editors’ have access, you should try a plugin which can add/edit user capabilities, such as ‘Members’, ‘User Role Edit’.

Hi again. It works with the new 3.3 Wordpress version? Thanks.

Brilliant, Brilliant, Brilliant!

This is the plugin I have been after for some time.

Many others like it, but not as simple and as good as this.

Please, please, never ever stop supporting / updating this (promise).

You just got 5 stars from me :-)

Thank you very much!

confirm – works with wordpress 3.2.1

only criticism is that it could use some jquery to accordion the sections (pages, post, settings, etc.). I have over 100 posts and it was a visual distraction to scroll past them all.

Nice idea. I’ll consider about this in next version.

Hi, I have a question before I buy it.

If I have a star rating plugin, and I want my clients just see the page of the statistics of this plugin, and nothing else in the control panel. It works?

Thanks! And God bless you!

Yes, of course. This plugins is designated for this kind of purpose!

Hi – can this plugin hide menu items based on whether someone is logged in or not? For instance, I want to add a menu item for “Create Account”, but if they are logged in, I want to hide that menu item and show one called “View Account”. Ideally, this would have two check boxes… “Hide if logged in” and “Hide if Not logged in”. Does this plugin allow for this?

Thanks.

Actually the plugin works only when user is logged in. It worked in the Admin area, so users have to log in to see the menu. What you’re looking for is another script that works for non-logged in users.

Can it hide Profiles?

Yes, it can hide Profiles menu.

Hello,

This plugin looked promising but after installation I see “No checkbox means the menu is not accessible for corresponding role”.

I was planning to provide my client with the Appearance- Widgets menu item but the above restriction (No checkbox) applies to all Appearance items. Is there some way that I can customize the plugin to provide controls over other menu items?

Thanks

Hi Saintjoadmin,

The message means: your clients don’t have permission to access that menu item.

I suggest you use a role editor plugin like Member, User Role Editor to change your clients’ roles (maybe to ‘editor’), and then use the Hide Admin Menu plugin to hide unwanted menu items.

Please see the the plugin page (http://www.deluxeblogtips.com/wordpress-hide-admin-menu/) to see what I’ve done for custom role. It’s very similar to your problem.

rilwis,

Thanks for the kind reply. I will apply your suggestion as I do want to make the best use of plugin.

Hi, it’s look usefull. One question, if I decide to hide dashboard for editors, when they connect to the admin panel, will they be redirect to an other admin page than dashbord?

thanks

Hi nicodweb,

This plugin does only the “hide” job. It actually doesn’t remove URLs of menus/submenus. So if you remove dashboard for users, and when they login (or access to any admin page via dashboard), they still can see the dashboard.

Hey rilwis, nice plugin, looks extremely helpful. However, let’s take a scenario. I’m the site owner (main admin) and I have a client, that, most definitely be an admin also. How will this plugin help ? if i disable menus on the client, will it affect me as the other admin ?

2) can i assign this plugin for me (main admin) only ?

thanks in advance.

Patrick

Hi Patrick,

The solution for this is creating custom role for your clients, using some plugins such as Edit User Role or Members. You can assign the same capabilities for clients.

Then, in the plugin menu, just select menus/submenus that you want to hide, including Hide Admin Menu itself!

Is this compatible with 3.2?

Yes, it is.

by
by
by
by
by
by

Tell us what you think!

We'd like to ask you a few questions to help improve CodeCanyon.

Sure, take me to the survey