[wp-hackers] User levels in 1.6

Matt Mullenweg m at mullenweg.com
Sat Jul 9 01:30:56 GMT 2005

Though this may change in 1.6 re: the role discussion, we still have 
user levels for now. If your plugin or code interacted directly with the 
user_level field in the wp_users table it will not work in 1.6, that 
value has been moved to the usermeta table. If you're accessing it 
throguh the standard get_userdata object then you're *fine*, none of 
your code needs to change.

In the DB the meta_key is now $wpdb->prefix . 'user_level'.

Matt Mullenweg
http://photomatt.net  | http://wordpress.org
http://pingomatic.com | http://cnet.com

More information about the wp-hackers mailing list