Change WordPress user roles and capabilities Forums Bug Reports Shortcode except_roles not working for administrator role

Viewing 2 posts - 1 through 2 (of 2 total)
  • Author
    Posts
  • #3039
    dweb360
    Participant

    Hello
    I added the code below to a page :

    [user_role_editor roles="b2b, agent-voyage, admin, administrator"]
    [searchandfilter id="332"]
    [searchandfilter id="332" show="results"]
    [/user_role_editor]
    
    [user_role_editor except_roles="b2b, agent-voyage, admin, administrator"]
    <strong>Accès réservé à nos partenaires</strong>
    <br>
    [theme-my-login]
    [/user_role_editor]

    When i’m connected as “b2b, agent-voyage or admin”, the login form is not displayed but
    when i’m connected as “administrator” the login form is displayed !

    Thank you for your help

    #3042
    Vladimir
    Keymaster

    Hi,

    [user_role_editor] shortcode do not work for ‘administrator’ role by design. The are no any restrictions for administrator.

Viewing 2 posts - 1 through 2 (of 2 total)
  • You must be logged in to reply to this topic.