Hi,
I have filtered off all the updates except for status updates in activity stream by limiting them to only ‘activity_update’ which excludes MediaPress updates, too.
I wonder how to add them to activity stream.here’s my code:
function bpa_filtering_activity( $retval ) {
// activities to filter on, comma separated
$retval[‘action’] = ‘activity_update’;
return $retval;
}
add_filter( ‘bp_after_has_activities_parse_args’, ‘bpa_filtering_activity’ );I have tried mmp_update, mediapress etc., what is the correct one?
Thank you!
LeoHi Leo,
I am sorry but I could not understand your goal here.If you are looking for a way to filter out all MediaPress activity please use the activity type as
“mpp_media_upload”
Also, to post the code please use backtick in the forum(`). That will make your code readable.
Please do let me know if the activity type worked for you or not?
Thank you
Brajesh
You must be logged in to reply to this topic.