bp_core_mark_user_ham_admin

Hook to WP's make_ham_user and run our custom BP spam functions.

Description

bp_core_mark_user_ham_admin( (int) $user_id ); 

Parameters (1)

0. $user_id (int)
The user ID passed from the make_ham_user hook.

Usage

  1. if ( !function_exists( 'bp_core_mark_user_ham_admin' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-members/bp-members-functions.php'; 
  3.  
  4. // The user ID passed from the make_ham_user hook. 
  5. $user_id = -1; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bp_core_mark_user_ham_admin($user_id); 
  9.  

Defined (1)

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

/bp-members/bp-members-functions.php  
  1. function bp_core_mark_user_ham_admin( $user_id ) { 
  2. bp_core_process_spammer_status( $user_id, 'ham', false );