Files
Filename | Hook Type | Line Number | PHP Doc |
---|---|---|---|
wp-includes/user.php | do_action | 2457 | /** * Fires after the user is marked as a SPAM user. * * @since 3.0.0 * * @param int $user_id ID of the user marked as SPAM. */ |
wp-includes/ms-deprecated.php | do_action | 724 | /** * Update the status of a user in the database. * * Previously used in core to mark a user as spam or "ham" (not spam) in Multisite. * * @since 3.0.0 * @deprecated 5.3.0 Use wp_update_user() * @see wp_update_user() * * @global wpdb $wpdb WordPress database abstraction object. * * @param int $id The user ID. * @param string $pref The column in the wp_users table to update the user's status * in (presumably user_status, spam, or deleted). * @param int $value The new status for the user. * @param null $deprecated Deprecated as of 3.0.2 and should not be used. * @return int The initially passed $value. */ |
Hook Parameters
Parameter Type | Name | Description |
---|---|---|
int | $user_id | ID of the user marked as SPAM. |