Register Advertise with usHelp Desk Today's Posts Search

Closed Thread
Thread Tools Search this Thread
Unread 18th Dec 2012, 11:22 AM   #1
New Warrior Member
 
pdunn's Avatar
 
Join Date: 2008
Location: Tucson AZ
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Arrow
WP Plugin to hide certain widgets from non admin?
Share on: 
fb share twitter share gplus share more share

Anybody know of a WordPress plugin that would hide certain widgets in the backend from non admins?

I have several customer sites where I would like to give them access to the widget area so they can use and customize certain widgets. But we do not want them to have access or see all the possible widgets in the install for a couple reasons. 1) we want to keep as much "white labeled" as possible and 2) too much access will inevitably mean a few of the users will accidentally change something... then need unnecessary support to get it back to the way it was...
pdunn is offline  
Unread 18th Dec 2012, 12:29 PM   #2
VIP Warrior
War Room Member
 
SteveJohnson's Avatar
 
Join Date: 2007
Location: Caldwell, Idaho, USA.
Posts: 1,967
Thanks: 1,024
Thanked 2,043 Times in 1,183 Posts
Default
Re: WP Plugin to hide certain widgets from non admin?
Share on: 
fb share twitter share gplus share more share

What's 'white labeled'? What are you attempting to hide?

'Non-admins' do not have the capability of modifying widgets anyway. The 'edit_theme_options' role determines whether a user sees and can access the Appearances sub-menu options. Only the Super Administrator and Administrator roles have that capability.

There is no way that I know of to hide certain widgets and not others. The widget list that populates each of the sidebars (in wp-admin/widgets.php) is not filtered; there is no way to influence the list.

If you write your own widgets, you could create a new capability and assign it to certain users; then restrict the editing of a widget to only those with that capability. But you won't be able to keep them from removing the widget.
SteveJohnson is offline  
Unread 19th Dec 2012, 09:24 AM   #3
New Warrior Member
 
pdunn's Avatar
 
Join Date: 2008
Location: Tucson AZ
Posts: 6
Thanks: 0
Thanked 0 Times in 0 Posts
Default
Re: WP Plugin to hide certain widgets from non admin?
Share on: 
fb share twitter share gplus share more share

I do a lot of work where the permissions for users are modified substantially. So in those cases, I can give non admins rights to widgets and other areas.

Found what I was looking for over at Code Canyon.

WordPress - WLB: Hide Widgets in Admin | CodeCanyon
pdunn is offline  
Closed Thread


Bookmarks

Tags
admin, hide, plugin, widgets, wordpress


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off
Trackbacks are Off
Pingbacks are Off
Refbacks are Off




All times are GMT -6. The time now is 04:29 PM.