BuddyDev

Search

[Resolved] How to include only MediaPress activities in activity stream

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on #2074

    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!
    Leo

  • Keymaster
    (BuddyDev Team)
    Posts: 24593
    Brajesh Singh on #2077

    Hi 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

  • Participant
    Level: Enlightened
    Posts: 79
    Leo on #2092

    Hi Brajesh,

    Thank you, that was what I’ve been looking for.

    Thanks,
    Leo

You must be logged in to reply to this topic.

This topic is: resolved