It’s a temporary information and i wouldn’t try to alter or remove it.
It use WP heartbeat API and what you’re looking for is defined in this (filterable)function:
bp_activity_heartbeat_last_recorded
Hi @danbp,
Thanks for your response. How to define 2 filters in a loop I am using the below filter but it doesn’t work
<php if ( bp_has_activities( bp_ajax_querystring( 'activity' ) . '&object=profile,status&action=bbp_reply_create,bbp_topic_create' ) ) : >
Please help.
Thanks,
@danbp thanks for your response I’ve used the below code as per the suggested link but still it dosen’t work.
function my_bp_activities_per_page_5_on_user_activity( $retval ) {
// only fetch the last five entries if we're on a user's activity page
if ( bp_is_user_activity() ) {
$retval['action'] = 'bbp_reply_create, bbp_topic_create, activity_update';
$retval['object'] = 'profile, status';
}
return $retval;
}
add_filter( 'bp_after_has_activities_parse_args', 'my_bp_activities_per_page_5_on_user_activity' );