WordPress.org

Support

Support » Plugins and Hacks » The Events Calendar » [Resolved] Hide Events menu from users without capabilities

[Resolved] Hide Events menu from users without capabilities

  • Hi Modern Tribe,

    Thanks for developing this fantastic plugin!
    I have only one trouble with it: regular users on my site (for example Subscribers) don’t have any capabilities connected with Events, but they see Events in left-handed menu. There are no options inside, and clicking it gives them a message that they have no sufficient privileges, so I would like to hide this menu item from these users.

    I found how to hide the admin bar menus, but I have no idea how to hide the left-handed menu items. Could you give me some directions?
    Best Regards!

    http://wordpress.org/extend/plugins/the-events-calendar/

Viewing 4 replies - 1 through 4 (of 4 total)
  • In case somebody has the same problem: I somehow managed to solve it by commenting contents of the function called addHelpAdminMenuItem() in lib/the-events-calendar.class.php.
    As a side effect it caused the “Help” menu to disappear from the Events menu, but the Help tab is still there on Settings page.

    Plugin Author Rob La Gatta

    @roblagatta

    Hi emtek. Thanks for the note here, and for your words of praise. We really appreciate it and are glad to hear you enjoy the plugin.

    It sounds like you got this sorted, which is great. That’s probably the best solution at this time – we’re modifying roles/capabilities quite a bit for 3.0 and that should resolve this as well in a more official capacity.

    Going to mark this Resolved accordingly. Thanks again for your support and use of The Events Calendar. Let us know what else we can do.

    Hi Rob, thanks for your reply. I’m glad you consider my solution as good 😉 I’ll be waiting for 3.0. Have a nice day!

    Plugin Author Rob La Gatta

    @roblagatta

    Excellent to hear! We really appreciate your support, emtek. Thanks again for using The Events Calendar.

Viewing 4 replies - 1 through 4 (of 4 total)
  • The topic ‘[Resolved] Hide Events menu from users without capabilities’ is closed to new replies.
Skip to toolbar