Forums

admin vs super_admin - user levels (1 post)

  1. MAzCastro
    Member
    Posted 1 year ago #

    Hi

    Since WP3, user_level is deprecated.

    This means I can no longer differentiate the super admin (wich had ul10) from the admins (wich had ul9). Now they both have user_levels 10, so I cannot deliver custom content to them separately.

    How can make a similar verification in WP3?

    The codex says I should be using roles instead of user_levels. Ok. But there is no super admin role!

    Checking the user ID is one possibility (super admin is allways ID=1), but I'd like to know if there are smarter ways.

    Thanks in advance!

    MAC :)

Topic Closed

This topic has been closed to new replies.

About this Topic