update_user_status()
Deprecated from version 5.3.0. It is no longer supported and can be removed in future releases. Use wp_update_user() instead.
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.
Hooks from the function
Return
Int
. The initially passed $value.
Usage
update_user_status( $id, $pref, $value, $deprecated );
- $id(int) (required)
- The user ID.
- $pref(string) (required)
- The column in the wp_users table to update the user's status in (presumably user_status, spam, or deleted).
- $value(int) (required)
- The new status for the user.
- $deprecated(null)
- Deprecated as of 3.0.2 and should not be used.
Default: null
Notes
- See: wp_update_user()
- Global. wpdb. $wpdb WordPress database abstraction object.
Changelog
Since 3.0.0 | Introduced. | |
Deprecated Since 5.3.0 | Use wp_update_user() |