Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Registered Member Updates from Activity Stream

Viewing 2 replies - 1 through 2 (of 2 total)

  • Julia_B
    Participant

    @julia_b

    Anyone? 🙂


    iamdev
    Participant

    @iamdev

    you can use this code buddypress has a function
    place this code in function.php

    function julia_b_activity_dont_save_item( &$activity ) {
     
        $dont_types = array( 'new_member');
     
        if ( empty( $activity->id ) && in_array( $activity->type , $dont_types ) ) {
            $activity->type = '';
     
        }
     
    }
    add_action( 'bp_activity_before_save', 'julia_b_activity_dont_save_item' );
Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar