WordPress.org

Forums

Advanced Access Manager
[resolved] How to check for superadmin (5 posts)

  1. estepix
    Member
    Posted 1 year ago #

    Hi,

    I'm using v2.0 beta 4. I used to be able to check for superadmin in versions 1.9 and lower using this:

    if ( class_exists(mvb_Model_API) && !mvb_Model_API::isSuperAdmin()) {

    How can I check for superadmin in the last plugin version.

    Thanks,
    Oscar

    http://wordpress.org/plugins/advanced-access-manager/

  2. WP AAM
    Member
    Plugin Author

    Posted 1 year ago #

    Hi Oscar,
    AAM now is way more closer to WordPress Core than previous versions. So for your purposes you can use WordPress core function is_super_admin.
    Also you might find this topic a little bit useful: http://wpaam.com/forum/viewtopic.php?f=9&t=38#p104

    Regards,
    Vasyl

  3. estepix
    Member
    Posted 1 year ago #

    Hi the link you posted does not seem to work.

    I ave tried is_super_admin(), however it does not differentiate between my main admin and other admins on the site, they are all considered superadmins.

    By the way, I'm not using wordpress multisite.

  4. WP AAM
    Member
    Plugin Author

    Posted 1 year ago #

    HI estepix,
    This is how WordPress works my friend. There is no such a thing as super admin for single blog. In general super admin is someone who can delete_users. If you uncheck this capability for any user, they will not be treated as Super Admin any more.

    Regards,
    Vasyl

  5. estepix
    Member
    Posted 1 year ago #

    ok thanks!

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • Advanced Access Manager
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic