Hi guys!
I’ve found this topic on Neighborhood in which it is suggested to use the following snippet:
/*------------------------------------------*/
/* Remove Unwanted Admin Menu Items */
/*------------------------------------------*/
function remove_admin_menu_items() {
$remove_menu_items = array(__('Jobs'),__('Portfolio'));
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');
Since I need to get rid of Jobs, Portfolio, Galleries, Team & Testimonials, I think it will be enough for me to add them to $remove_menu_items
, right?
Should I use __('xxx')
syntax?
Can you please confirm that to me?