• Resolved omahoung

    (@omahoung)


    Hello,

    I need to assign to a user the roles “Instructor” + “Editor”. For this I use the plugin “Members”. When the user have these 2 roles, in his back-end menu the “Posts” item disappears. He still has the edit post capability because he can access to the post page (direct access to /wp-admin/edit.php). Just the menu item disappears. When I remove the “Instructor” role, then the “Posts” menu item appears again.

    I first thought this may come from the Members plugin but according to the author it doesn’t.

    When I search for the code remove_menu_page in all the plugins it appears only inside LifterLMS, file \lifterlms\includes\admin\class.llms.admin.menus.php line 299.

    How to fix this?

    Thank you!

Viewing 5 replies - 1 through 5 (of 5 total)
  • Natalie

    (@nrherron)

    Hi @omahoung

    Thanks for reaching out!

    The best way to address this will be to use a Role Capability editor to allow Instructors to see posts.

    We have more information in our documentation on this here: https://lifterlms.com/docs/roles-and-capabilities/#customizing

    Let us know if you have any further questions!

    All the best,

    Thread Starter omahoung

    (@omahoung)

    Thanks for the answer.

    I am already using a role capability editor plugin, it is called “Members”. With this plugin I have assigned 2 roles to a specific user: Instructor + Editor. As this instructor is also an Editor he should see the “Posts” item in the admin menu.

    I can’t edit the LifterLMS Instructor role to add some Capabilities because only 1 instructor needs the additional capabilities.

    Natalie

    (@nrherron)

    Hi @omahoung

    Thank you for clarifying!

    Does the role editor you’re using allow you to create new roles based on existing roles?

    If so, the best solution then would be to create a new role for the one user that gives them the needed customized permissions to access the posts as well as all the Instructor capabilities.

    If this “Members” plugin does not allow that we are happy to make a recommendation! Just let us know.

    Let us know if you have any further questions!

    All the best,

    Thread Starter omahoung

    (@omahoung)

    Oh yes, I didn’t think about that, I can try, even if I would prefer that an Instructor could have multiple roles assigned. I actually wrote some code to add the menu item in case it doesn’t show, it works fine, so maybe I will keep this code and I will not have to create an additional role.
    Thanks for the suggestion.

    Natalie

    (@nrherron)

    Hi there!

    Awesome! We will go ahead and mark this thread resolved!

    If you do end up having any further questions please don’t hesitate to reply and we will reopen the thread then!

    Have a great weekend!

Viewing 5 replies - 1 through 5 (of 5 total)
  • The topic ‘Posts admin menu removed’ is closed to new replies.