BuddyBoss Home – Web Support Forums Themes Boss. theme What the Activity Wall Shows

Viewing 3 posts - 1 through 3 (of 3 total)
  • Question

    #67420
    @gregcatmull

    Hi,

    is there are way to only show post updates on the activity page?

    Currently it shows ‘friends with…’ etc

    Thanks

    Greg

    Answers

    #67455

    Anonymous
    @

    Hi @gregcatmull,

    Please add the following function in your child theme’s function.php to block certain activity types from being added :

    
    function bp_activity_dont_save( $activity_object ) {
        $exclude = array(
            'friendship_created',
            'joined_group'
        );
        // 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', 'bp_activity_dont_save', 10, 1 );
    

    Regards

    #67469
    @gregcatmull

    This doesn’t work and seems to upset my pages when i place this into my child themes function.php file.

    is there no custom css for this?

    http://www.yourbetsfriend.com

    thanks
    Greg

Viewing 3 posts - 1 through 3 (of 3 total)
  • The question ‘What the Activity Wall Shows’ is closed to new replies.