• Hi guys,

    I’ve gone to add a menu only for admin for our site to find that the “Administrator” role is not showing in the list when the option “Logged in Users” is selected.

    Is there a way of adding this? We only want the “Admin” to see this when logged in.

    Here is a screenshot so you can see what i’m referring to:

    View post on imgur.com

    Thanks in advance,

    Cotty

Viewing 3 replies - 1 through 3 (of 3 total)
  • Plugin Support Ultimate Member Support

    (@ultimatemembersupport)

    Hi @pesonline,

    Do you use multisite install?
    Do you see Administrator user role in your User roles section in Ultimate member?

    Regards.

    Thread Starter PESOnline

    (@pesonline)

    Thanks for the speedy response.

    In response to your questions, its a standalone install, not multisite (www.pesonline.co.uk) and yes, Administrator is there.

    Thank You

    The reason the administrator is not in the list is because it was coded to exclude it. I modified my code and the administrator now shows up in the roles check list.

    wp-content/plugins/ultimate-member/includes/admin/core/class-admin-navmenu.php::_wp_template()::155
    – modified
    -pre:
    <?php $options = UM()->roles()->get_roles( false, array( ‘administrator’ ) );
    -post:
    <?php $options = UM()->roles()->get_roles( false );

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Administrator Missing from Menu List’ is closed to new replies.