Jump to content
Sign in to follow this  
fourdw

Anyone know what the menus are called? So I can unset them?

Recommended Posts

fourdw

I'm using an array to get rid of menus, WP standard menus are simple to workout, but how do you unset Banners, PlatformPro, Features etc.? Here's an example which removes the links... $restrict = array(__('Dashboard'), __('Posts'), __('Media'), __('Links'), __('Pages'), __('Appearance'), __('Tools')); $value = explode(' ',$menu[key($menu)][0]); if(in_array($value[0] != NULL?$value[0]:"" , $restrict)){unset($menu[key($menu)]);} Thanks

Share this post


Link to post
Share on other sites
Kate
Have you considered using a plugin? Just Tadlock's "Members" plugin allows you to "hide" different menu features from users you don't want seeing it.

Share this post


Link to post
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now

Sign in to follow this  

×