update_user_status ( $id, $pref, $value, $deprecated = null )

  • (int) $id The user ID.
  • (string) $pref The column in the wp_users table to update the user's status in (presumably user_status, spam, or deleted).
  • (int) $value The new status for the user.
  • (null) $deprecated Deprecated as of 3.0.2 and should not be used.
  • (int) The initially passed $value.
Defined at:


Update the status of a user in the database.

Used in core to mark a user as spam or "ham" (not spam) in Multisite.

Related Functions

update_user_meta, update_usermeta, update_user_caches, update_blog_status, update_user_option

Top Google Results

User discussions

wpseek mobile