Thanks Varun
Is this the code below?
if ( ‘online’ == $type ) {
$sql[‘where_online’] = “AND DATE_ADD( um.meta_value, INTERVAL 5 MINUTE ) >= UTC_TIMESTAMP()”;
}
Is their no way to change this by writing a function?
@shnactor1 not getting any filter for it, you can check in trac might be any lead developer can help on it.
Ok Thank you for your help
To achieve this in BuddyPress, you’ll need to modify the widget’s logic by extending the online status duration. You can do this by hooking into the bp_core_set_last_activity function and adjusting the last activity time with a custom offset. Essentially, add a 30-minute buffer by storing the user’s last activity time when they log out and ensuring the widget references that modified time. You can use custom code or a plugin like BP Better Messages that allows tweaking the online/offline status duration. Be cautious, as this could create inconsistencies if not tested properly. For more info you may visit https://www.timekeeponline.com/.