Hey guys, I’m making a special user with a modified ‘Editor’ role to give my client since he only wants to deal with Posts, Portfolio and Products.
So I almost got the menu clean for them but I can’t seem to be able to hide the Swift Slider menu
I’m trying the following code on the child theme functions:
/* Clean up the admin sidebar navigation *************************************************/
function remove_admin_menu_items() {
$remove_menu_items = array(__('Swift Slider'),__('Contacto'));
global $menu;
end ($menu);
while (prev($menu)){
$item = explode(' ',$menu[key($menu)][0]);
if(in_array($item[0] != NULL?$item[0]:"" , $remove_menu_items)){
unset($menu[key($menu)]);}
}
}
add_action('admin_menu', 'remove_admin_menu_items');
The other one being the Contact Form 7 panel which was successfully hidden from view.
Also if I hide the Swift Slider this way will it continue to work normally?
Thanks!