bp_make_spam_user

The WordPress Core bp make spam user hook.

Description

add_action( 'bp_make_spam_user', (string) $bp_blogs_remove_data ); 

Parameters (1)

0. $bp_blogs_remove_data (string) => 'bp_blogs_remove_data'
The bp blogs remove data.

Usage

To run the hook, copy the example below.
  1. // run the action 
  2. do_action( 'bp_make_spam_user', $bp_blogs_remove_data ); 
The following example is for adding a hook callback.
  1. // define the bp_make_spam_user callback 
  2. function action_bp_make_spam_user( $bp_blogs_remove_data ) { 
  3. // make action magic happen here... 
  4. }; 
  5.  
  6. // add the action 
  7. add_action( 'bp_make_spam_user', 'action_bp_make_spam_user', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the action 
  2. remove_action( 'bp_make_spam_user', 'action_bp_make_spam_user', 10, 1 ); 

Defined (7)

The action is defined in the following location(s).

/bp-blogs/bp-blogs-functions.php  
  1. add_action( 'bp_make_spam_user', 'bp_blogs_remove_data' ); 
/bp-activity/bp-activity-functions.php  
  1. add_action( 'bp_make_spam_user', 'bp_activity_spam_all_user_data' ); 
/bp-friends/bp-friends-functions.php  
  1. add_action( 'bp_make_spam_user', 'friends_remove_data' ); 
/bp-groups/bp-groups-functions.php  
  1. add_action( 'bp_make_spam_user', 'groups_remove_data_for_user' ); 
/bp-members/bp-members-functions.php  
  1. do_action( 'bp_make_spam_user', $user_id ); 
  1. add_action( 'bp_make_spam_user', 'bp_core_remove_data' ); 
/bp-xprofile/bp-xprofile-functions.php  
  1. add_action( 'bp_make_spam_user', 'xprofile_remove_data' );