bp_remove_follow_data( $user_id )

Removes follow relationships for all users from a user who is deleted or spammed

Description

Source

File: bp-activity/bp-activity-functions.php

4876
4877
4878
4879
4880
4881
4882
4883
4884
4885
4886
4887
4888
4889
4890
4891
4892
function bp_remove_follow_data( $user_id ) {
    /**
     * @todo add title/description
     *
     * @since BuddyBoss 1.0.0
     */
    do_action( 'bp_before_remove_follow_data', $user_id );
 
    BP_Activity_Follow::delete_all_for_user( $user_id );
 
    /**
     * @todo add title/description
     *
     * @since BuddyBoss 1.0.0
     */
    do_action( 'bp_remove_follow_data', $user_id );
}

Changelog

Changelog
Version Description
BuddyBoss 1.0.0 Introduced.

Questions?

We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.