WordPress.org

Ready to get started?Download WordPress

Forums

wp_users Table: spam Field? (2 posts)

  1. Tom Belknap
    Member
    Posted 3 years ago #

    So, I'm working on a plugin and wanted to see if there was a way to avoid the plugin operating on suspicious accounts, like spam accounts. Browsing around, I noticed that there is a field in the table called "spam," but as yet, I have not discovered where this field is set?

    I've looked in both the individual blog administration and the site administration stuff - I'm running a converted MU site - but can't seem to find it. However, if I set the field directly in the database, the user shows up red highlighted in the user admin area, so clearly, WordPress is currently using it somehow.

    Can anyone shed any light on what the deal is with this field? Is it being deprecated? Thanks a lot!

  2. Mister Piercy
    Member
    Posted 3 years ago #

    Ah, the enigmatic wp_users spam and deleted fields...

    I encountered a similar issue and although I didn't find where the field was set, I did discover that manually setting it to '1' prevents the user from logging in and presents a 'You Are a Big Fat Spammer' message.

    The wp_users spam field and the equally mysterious deleted field appeared with the addition of multisite functionality. According to the includes/ms-functions.php file, deleted plays a role in determining a user's active blog, but I can't seem to make it do anything useful -- either from the admin interface or by changing it in the database. It may turn out that I've misconfigured something, though, and the functions are just never being called.

    Cheers.

Topic Closed

This topic has been closed to new replies.

About this Topic