rtMedia activity action type name to filter activity loops?


#1

Does anyone know the activity action name so we can filter the activity loop? https://codex.buddypress.org/developer/loops-reference/the-activity-stream-loop/#filtering-options

So I can use the bp_after_has_activities_parse_args filter: https://codex.buddypress.org/developer/using-bp_parse_args-to-filter-buddypress-template-loops/

Because the action ‘activity_update’ doesn’t show the media activities, example:

function cm_activity_filter( $retval ) {

	if ( bp_is_activity_front_page() ) {  
		$retval['action'] = 'activity_update';  
	}
}
add_filter( 'bp_after_has_activities_parse_args', 'cm_activity_filter' );

Thanks in advance.


#2

Please help. Does rtMedia support activity action filters?

If no one understands what I mean, could you please look up the two websites I provided in my first post or type this code in your website:

(This will affect all activities)

function am_activity_filter( $retval ) {

	$retval['action'] = 'activity_update'; 

    return $retval;
}
add_filter( 'bp_after_has_activities_parse_args', 'am_activity_filter' );

What this does is display activity updates only. But it this is not including the activity updates with the rtMedia.

If you want to display activity updates and activity replies, you can replace:

$retval['action'] = 'activity_update';

with

$retval['action'] = 'activity_update,activity_comment';

What is the action name for rtMedia so I can add something like:

$retval['action'] = 'activity_update,rtMedia_activity_updates';

Thanks in advance.


#3

I found it. looks like it is rtmedia_update.


#4