WordPress.org

Support

Support » Miscellaneous » wp_users user_level

wp_users user_level

  • Hello

    Right now, the user_level field in the wp_users table is typed as unsigned int.

    Does anyone know of any reason why I cannot change this to signed int, and populate certain users w/ user_level=-1?

Viewing 4 replies - 1 through 4 (of 4 total)
  • Moderator James Huff

    @macmanx

    Why don’t you want to change it through WP’s interface under the “Users” tab?

    I would imagine the devs did not anticipate whatever the need you have is for setting user level to a negative value. Is there a specific purpose for it?

    Well, you can alter the table if you’d like; I suspect this is not what you’re looking for, though I don’t know fully what your goal is.

    I don’t know if this helps, but consider it a bit of indirect rumination that may trigger something… There is an unused column in the users table: user_status. I say unused because the only place it seems to exist in the source is the table creation schema.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘wp_users user_level’ is closed to new replies.
Skip to toolbar