WordPress.org

Ready to get started?Download WordPress

Forums

The Events Calendar
[resolved] Hide Events menu from users without capabilities (5 posts)

  1. emtek
    Member
    Posted 1 year ago #

    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/

  2. emtek
    Member
    Posted 1 year ago #

    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.

  3. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

    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.

  4. emtek
    Member
    Posted 1 year ago #

    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!

  5. roblagatta
    Modern Tribe Support
    Plugin Author

    Posted 1 year ago #

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

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic