make_ham_user action-hookWP 3.0.0

Fires after the user is marked as a HAM user. Opposite of SPAM.

Usage

add_action( 'make_ham_user', 'wp_kama_make_ham_user_action' );

/**
 * Function for `make_ham_user` action-hook.
 * 
 * @param int $user_id ID of the user marked as HAM.
 *
 * @return void
 */
function wp_kama_make_ham_user_action( $user_id ){

	// action...
}
$user_id(int)
ID of the user marked as HAM.

Changelog

Since 3.0.0 Introduced.

Where the hook is called

wp_insert_user()
make_ham_user
update_user_status()
make_ham_user
wp-includes/user.php 2452
do_action( 'make_ham_user', $user_id );
wp-includes/ms-deprecated.php 727
do_action( 'make_ham_user', $id );

Where the hook is used in WordPress

wp-includes/ms-default-filters.php 88
add_action( $action, 'wp_maybe_update_network_user_counts', 10, 0 );