make_spam_user хук-событиеWP 3.0.0

Fires after the user is marked as a SPAM user.

Использование

add_action( 'make_spam_user', 'wp_kama_make_spam_user_action' );

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

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

Список изменений

С версии 3.0.0 Введена.

Где вызывается хук

wp_insert_user()
make_spam_user
update_user_status()
make_spam_user
wp-includes/user.php 2482
do_action( 'make_spam_user', $user_id );
wp-includes/ms-deprecated.php 726
do_action( 'make_spam_user', $id );

Где используется хук в WordPress

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