#1 WordPress forum plugin created by gVectors Team

wpForo – WordPress Forum Plugin
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation

Forum

Home | Forum

wpDiscuz - WordPress Comment Plugin
  • Forums
  • Members
  • Recent Posts
Forums
Main Support Forums
How-to and Troubles...
Hide "Recent Posts"...
 
Share:
Share
Tweet
Share
Notifications
Clear all

Hide "Recent Posts" tab if not logged in

    Last Post
RSS

webdevguy
Posts: 5
 webdevguy
Topic starter
September 24, 2018 9:21 pm
(@webdevguy)
Active Member
Joined: 4 years ago

If a user is not logged in, how can I HIDE the default "Recent Posts" tab?

 

 

1 Reply
Sofy
Posts: 4057
Sofy - Facebook Sofy - Twitter
 Sofy
Admin
September 25, 2018 10:56 am
(@sofy)
Support Team
Joined: 4 years ago

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');

In case you want to say thank you !)
We'd really appreciate and be thankful if you leave a good review on plugin page. This is the best way to say thank you to this project and support team.

Reply
  All forum topics
  Previous Topic
Next Topic  

Forum Search

Join Us!

Download wpForo plugin
on WordPress.org

wpForo Addons

wpforo-private-messages wpforo-advanced-attachments-128x128 wpforo-embeds-128x128 wpForo User Custom Fields addon wpForo – Blog Cross Posting addon wpForo Ads Manager wpForo – WooCommerce Memberships Integration wpForo Emoticons wpForo – Tenor GIFs Integration
View all Addons »

Recent Topics

  • No Wpforo widget

    By Vijiki, 7 hours ago

  • Guest to not see recent posts on Recent activity page

    By OMTesla, 17 hours ago

  • Prevent access to the url "community"

    By totor, 2 days ago

  • Dark mode

    By Vijiki, 2 days ago

  • Menu location

    By Vijiki, 2 days ago

  • Setting recent topics on forum frontend

    By Vijiki, 3 days ago

Topic Tags

  • translation49
  • css49
  • plugin conflict48
  • seo45
  • new features44
  • buddypress42
  • ultimate member40
  • avatar40
  • forum40
  • moderation38
  • login38
  • registration36
  • threaded layout35
  • cache33
  • editor32
  • menu32
  • shortcode31
  • spam29
  • forum accesses29
  • phrases28
View all tags (2163)

Recent Posts

  • No Wpforo widget

    Of recent I can't seams to find my wpforo widgets. Wh...

    By Vijiki, 7 hours ago

  • RE: New wpForo

    Hi @gsmdahisi, I'm sorry, but the reputation badges wi...

    By Robert, 9 hours ago

  • RE: Prevent access to the url "community"

    @chris Ok... I'll have to buy new glasses! Thanks ...

    By totor, 15 hours ago

  • RE: Guest to not see recent posts on Recent activity page

    Hello Sorry to ask here. What causes as a guest to ...

    By OMTesla, 17 hours ago

  • RE: Dark mode

    @vijiki, try this: .wpforo-widget-content .wpforo-...

    By Chris, 19 hours ago

  • RE: How to make logo appear on the BP photo

    Just like here, the wpDiscuz Image shown above the menu...

    By Chris, 2 days ago

  • RE: Draft draft users post on wpforo

    @vijiki, You can set the post/topic unapproved, so th...

    By Chris, 2 days ago

Share:
Share
Tweet
Share
  Forum Statistics
20 Forums
9,767 Topics
49.5 K Posts
8 Online
44.3 K Members

Latest Post: No Wpforo widget Our newest member: tiaroybeach Recent Posts Unread Posts Tags

Forum Icons: Forum contains no unread posts Forum contains unread posts

Topic Icons: Not Replied Replied Active Hot Sticky Unapproved Solved Private Closed

Powered by wpForo | Copyright © 2016-2022 gVectors Team
Copyright Registration Service - Click here for more information or to register work
wpForo is Registered with the IP Rights Office
Copyright Registration Service

Ref: 4477265538
  • Home
  • Forum
  • Migrate to wpForo
  • Addons
  • Addons Demo
  • Documentation