Notifications
Clear all

Script [Solved] "Recently viewed by users" list dissapears after ~1hr

5 Posts
3 Users
1 Reactions
300 Views
Posts: 3
Topic starter
(@vojtechm)
Active Member
Joined: 9 months ago

Is there a way to change time limit which removes "Recently viewed by users" part from topic footer? It's gone after ~1 hr. My goal is to have the list last for 24 hrs.

4 Replies
Robert
Posts: 10587
Admin
(@robert)
Support Team
Joined: 9 years ago

Hi @vojtechm,

Please read this FAQ topic: https://wpforo.com/community/faq/how-to-increase-time-period-of-recent-posts/

Posts: 3
Topic starter
(@vojtechm)
Active Member
Joined: 9 months ago

Hi, thank you for the link but I was asking for "Recently viewed by users" in topic's footer rather than Recent posts displaying.

2 Replies
Sofy
 Sofy
Admin
(@sofy)
Joined: 7 years ago

Support Team
Posts: 4772

@vojtechm,

Use the hook code below:

add_filter('wpforo_keep_visitors_data', function ($seconds){
return 1800; //30 minutes
});

Put the code in your active them functions.php file. 

The same question is discussed here: https://wpforo.com/community/how-to-and-troubleshooting-2/how-to-removed-recently-view-by-users/#post-52629

(@vojtechm)
Joined: 9 months ago

Active Member
Posts: 3

@sofy Thank you very much!