• Resolved licomic

    (@licomic)


    I’m trying to hide the user’s point awards in the buddypress activity stream. I found this code:

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

    I can’t figure out what slugs I need to add to the $exclude_array to prevent the points update. Thanks.

Viewing 1 replies (of 1 total)
  • Plugin Author Ruben Garcia

    (@rubengc)

    Hi @licomic

    You do not need to add any code for that, simply go to GamiPress > Points Types > (Edit your points type) > and uncheck the options to disable the activity entries

    Hope it helps!

Viewing 1 replies (of 1 total)
  • The topic ‘Hide Point Awards in Activity Stream’ is closed to new replies.