Limited Support
Our support team is currently on holiday from December 25, 2025 to January 7, 2026, and replies may be delayed during this period.
We appreciate your patience and understanding while our team is away. Thank you for being part of the wpForo community!
Merry Christmas and Happy Holidays! 🎄
Sep 24, 2018 9:21 pm
If a user is not logged in, how can I HIDE the default "Recent Posts" tab?
1 Reply
Sep 25, 2018 10:56 am
Hi webdevguy,
I'm sorry, but there is no any option for this purpose. You need to use the following code (put the code ithe n current active theme functions.php file):
function mycustom_wpforo_menu_array_filter($menu){
if( !is_user_logged_in() ){
unset( $menu['wpforo-recent'] );
}
return $menu;
}
add_filter('wpforo_menu_array_filter', 'mycustom_wpforo_menu_array_filter');