users - What the user_status column?

admin2025-04-20  0

I was look in the wp_users table a " user_status " column...( all contain zero )

What works is this data?

I was look in the wp_users table a " user_status " column...( all contain zero )

What works is this data?

Share Improve this question asked Apr 14, 2018 at 22:59 l6lsl6ls 3311 gold badge3 silver badges10 bronze badges 2
  • A quick Google search or search here in the WordPress Stack Exchange would have revealed the answer - it's no longer used by WordPress core. – Mat Commented Apr 14, 2018 at 23:11
  • I'dont find, the results mixed my head... not using the only real thing anymore – l6ls Commented Apr 14, 2018 at 23:14
Add a comment  | 

2 Answers 2

Reset to default 9

The user_status column in the wp_users table is no longer used by WordPress core - it just hasn't been removed. It may, or may not be used in the future. Best to leave it alone...

It is used to update the status of a user in the database. Used in core to mark a user as spam or "ham" (not spam) on multisite installs.

Status 0 is Ham
Status 1 is Spam

Again, this will not work on single site installs.

https://codex.wordpress/Function_Reference/update_user_status#Mark_a_User_as_Spam

转载请注明原文地址:http://conceptsofalgorithm.com/Algorithm/1745158257a287988.html

最新回复(0)