BuddyDev

Search

[Resolved] Remove Activity Stream Types From BP Activity Shortcode Plugin

  • Participant
    Level: Initiated
    Posts: 20
    With BenefitZ on #2190

    Hello Brajesh,

    I’ve been trying to figure out how to remove certain activity types from the list of activities.
    I want to show all activities but exclude certain activity types e.g “User became a registered member.”

    This is the shortcode i’m currently using to display all activities.
    [activity-stream display_comments=threaded per_page=20]

    I couldn’t find the options to filter off specific activity updates.

    scope(string):- – pre-built activity filters for a user (possible values are friends/groups/favorites/mentions)

    object(string):- object to filter on e.g. groups, profile, status, friends(what type of activity is this)

    action(string):- action to filter on e.g. activity_update, new_forum_post, profile_updated(why this activity was created)

    Thanks,

    #Israel

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #2191

    Hi Israel,
    Thank you for asking.
    This plugin does not allow excluding filter but you can include any known type of activity by passing comma separated types in action parameter. Here is an example:-

    
    [activity-stream  action='updated_profile,activity_update']
    
    

    You can add other types as needed. Hope that helps.

  • Participant
    Level: Initiated
    Posts: 20
    With BenefitZ on #2196

    The action option settles it.

    Thanks and Regards,

    #Israel

  • Keymaster
    (BuddyDev Team)
    Posts: 24190
    Brajesh Singh on #2197

    Thank you
    Closing this topic as resolved now.

The topic ‘ [Resolved] Remove Activity Stream Types From BP Activity Shortcode Plugin’ is closed to new replies.

This topic is: resolved