Remove Options From Dashboard For New User Role
-
I wanted to create a new user role between Admin and Editor and call it Moderator.
I started off by adding a function in my child theme with the capabilities added via an array but couldn’t get what I wanted.
I next tried to use various plugins but also couldn’t achieve what I was after. I might add that I prefer not to use a plugin for this if it is possible.
Finally I decided to modify the serialized data inside wp_options>>wp_user_roles using a nifty little online editor I found which did almost exactly what I was after.
The only issue I have now, is I need to block the following options from view by the new user role: Appearance, Custom Fields, Settings, Tools, the plugins Advanced Recent Posts and MetaSlider.
I’ve tried the following based on capabilities but I am starting to think that they aren’t classified as capabilities or there must be another way.
“settings”;b:0;s:5:”tools”;b:0;s:10:”appearance”;b:0;s:10:”metaslider”;b:0;
Any help greatly appreciated!
- The topic ‘Remove Options From Dashboard For New User Role’ is closed to new replies.