wp_users user_level (5 posts)

  1. crash
    Posted 11 years ago #


    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?

  2. James Huff
    Support Representative
    Posted 11 years ago #

    Why don't you want to change it through WP's interface under the "Users" tab?

  3. Kafkaesqui

    Posted 11 years ago #

    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?

  4. crash
    Posted 11 years ago #

  5. Kafkaesqui

    Posted 11 years ago #

    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.

Topic Closed

This topic has been closed to new replies.

About this Topic