1

I've migrated several sites from standalone installs into a Multisite install.

For the user table, I just recreated each new user individually one by one, and readjusted the user ID's accordingly elsewhere.

Upon investigating the user meta table, it seems that WordPress is creating keys for User Levels.

As mentioned in the Codex, it notes that User Levels were deprecated as of WordPress 3.0.

Why is it, that with a fresh installation of WordPress Multsite 4+, adding users, still creates "user_level" meta keys with values of such deprecated user level system?

Are user levels STILL used ANYWHERE in WordPress? or am I safe to simply just ignore those key/value pairs under the user meta table?

  • 1
    I don't have the references for this but I believe that there are a ton of database keys still there for "backwards compatibility" and those user_level keys are one of them. – Howdy_McGee Oct 31 '16 at 20:57
1

Many plugins (and themes) use user levels, you shouldn't use them in yours. They are still used in WordPress probably to offer backward compatibility with the huge number of plugins and themes that use them.

WPCS will throw a warning whenever it busts user levels in code.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

Not the answer you're looking for? Browse other questions tagged or ask your own question.