Core Function
View Source on Trac ↗ update_user_status()
update_user_status( mixed $id, mixed $pref, mixed $value, mixed $deprecated = null ) Update the status of a user in the database.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $id int | The user ID. Required |
| string | $pref The column in the wp_users table to update the user's status in (presumably user_status, spam, or deleted). Required |
| $value int | The new status for the user. Required |
| $deprecated null | Deprecated as of 3.0.2 and should not be used. |
Return Value
(int)
The initially passed $value.
Function Information
Since Version
3.0.0
Source File
wp-includes/ms-deprecated.php
Advertisement