Skip to:
Content
Pages
Categories
Search
Top
Bottom

Activity Stream


  • fullmoonfriday
    Participant

    @fullmoonfriday

    Righty-ho,

    I am getting there with cutting out elements of the site-wide activity stream. I have tried using activity_updates with Imath’s code

    if(function_exists('buddypress')):
    
    function imath_activivity_dont_save( $activity_object ) {
    // friendship_created is fired when a member accepts a friend request
    // joined_group is fired when a member joins a group.
    $exclude = array( 'friendship_created', 'joined_group', 'new_member', 'new_avatar', 'updated_profile','activity_updates' );
    
    // if the activity type is empty, it stops BuddyPress BP_Activity_Activity::save() function
    if( in_array( $activity_object->type, $exclude ) )
    $activity_object->type = false;
    
    }
    
    add_action('bp_activity_before_save', 'imath_activivity_dont_save', 10, 1 );
    
    endif;

    But this stops the capability to post an update accross the site. Can anyone let me know what does stop these postings to site-wide activity Tab but still allow users to post in their own profile?

    Thanks in advance

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • The topic ‘Activity Stream’ is closed to new replies.
Skip to toolbar