Skip to:
Content
Pages
Categories
Search
Top
Bottom

[Resolved] Activity stream – removing information


  • Sweeny
    Participant

    @sweeny

    Hi!

    I try to remove information about new members and about profile changes from the activity stream (sidewide). I found no code snippets for my child theme. Any ideas?

    Kind regards
    Sweeny

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

  • shanebp
    Moderator

    @shanebp

    Manually delete the existing entries.
    Place this in your theme/functions.php or in bp-custom.php to prevent creation of new entries.

    function bp_activity_do_not_save( $activity_object ) {
    	$exclude = array(
    	        'updated_profile',
    	        'new_member'
    	    );
    	
    	if( in_array( $activity_object->type, $exclude ) )
    		$activity_object->type = false;
    }
    add_action('bp_activity_before_save', 'bp_activity_do_not_save', 10, 1 );

    Sweeny
    Participant

    @sweeny

    Thank you very much! It works.

Viewing 2 replies - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.
Skip to toolbar