ifacethoughts

user_level

The earlier versions of WordPress had a system of user levels to determine the user’s capabilities. The level assigned to the user is stored in this global variable. It is set in the pluggable functions set_current_user() and get_currentuserinfo() defined in [wordpress root folder]/wp-includes/pluggable-functions.php.

Instead of using this global variable, the function current_user_can should be used to determine the current user’s capabilities.

Back to the full list of global variables.

Technorati tags: ,

Discussion [Participate or Link]

  1. Abhijit Nadgouda @ iface » Blog Archive » Wordpress Global Variables said:

    […] $user_level […]

  2. references» Blog Archive » Wordpress Global Variables said:

    […] $user_level […]

  3. Abhijit Nadgouda’s List of WordPress Global Variables « Lorelle on WordPress said:

    […] Data: wp_roles, user_pass_md5, user_url, user_login, user_level, user_identity, user_email, user_ID, current_user, and […]

Say your thought!

If you want to use HTML you can use these tags: <a>, <em>, <strong>, <abbr>, <code>, <blockquote>. Closing the tags will be appreciated as this site uses valid XHTML.

freshthoughts

contactme

Abhijit Nadgouda
iface Consulting
India
+91 9819820312
My bookmarks

badgesand...

This is the weblog of Abhijit Nadgouda where he writes down his thoughts on software development and related topics. You are invited to subscribe to the feed to stay updated or check out more subscription options. Or you can choose to browse by one of the topics.