Sep 24, 2018 9:22 am
As the title states, is there a way of removing certain options within the menu bar?
For example as in the image attached?
We're looking at reducing the options for registered users and want a clean setup (we're using another plugin for profiles / logout)?
Kindest Regards
Cotty
2 Replies
Sep 24, 2018 1:22 pm
Hi Cotty,
I'm sorry, but there is no any option for this purpose. You need to use the code like this one (put the code in current active theme functions.php file):
function mycustom_wpforo_menu_array_filter($menu){
if( WPF()->current_user_groupid == 8 ){
unset( $menu['wpforo-profile-account'] );
}
unset( $menu['wpforo-logout'] );
return $menu;
}
add_filter('wpforo_menu_array_filter', 'mycustom_wpforo_menu_array_filter');
Sep 24, 2018 8:01 pm
Thanks for the reply Sofy, its very much appreciated!
Hopefully, you'll consider adding this customisation feature at some point.Â
Thanks Again