Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- function remove_menus() {
- global $blog_id, $menu;
- if ( $blog_id == '1' ) {
- $restricted = array( 'Plans', 'Providers' );
- end( $menu );
- while ( prev( $menu ) ) {
- $value = explode( ' ', $menu[ key( $menu ) ][0] );
- if ( in_array( $value[0] != null ? $value[0] : "", $restricted ) ) {
- unset( $menu[ key( $menu ) ] );
- }
- }
- }
- }
- add_action('admin_menu', 'remove_menus');
Add Comment
Please, Sign In to add comment