Removing Events dropdown from Toolbar by role

Home Forums Calendar Products Events Calendar PRO Removing Events dropdown from Toolbar by role

Viewing 4 posts - 1 through 4 (of 4 total)
  • Author
    Posts
  • #1034125
    Steven W
    Participant

    We’re going to have some fairly nontechnical users registering in the Subscriber role. I’ve noticed that when a Subscriber logs in, the Toolbar that shows in Dashboard mode has the Events dropdown displayed. They can’t hurt anything since clicking the menu items just gets them the “You don’t have sufficient permissions…” spiel, but I’m afraid it’s going to cause unnecessary confusion. Is there any way to remove the Events dropdown menu from the toolbar if the logged-in user carries the Subscriber role? See http://screencast.com/t/vDo2vFv5a2 for visual.

    #1034161
    Brian
    Member

    Hi,

    Thanks for using our plugins.

    We have this guide to remove it all together.

    Remove “Events” From the WordPress Admin Bar

    You might be able to put that constant in your functions.php and wrap it like this:

    if ( current_user_can( 'subscriber' ) ) {
    define('TRIBE_DISABLE_TOOLBAR_ITEMS', true);
    }

    Not sure if that will work, but it is worth a shot.

    Thanks

    #1034173
    Steven W
    Participant

    The conditional works like a charm. Thanks!

    #1034187
    Brian
    Member

    Great, glad it helps, I am going to go ahead and close this ticket, but if you need help on this or something else please post a new ticket.

    Thanks!

Viewing 4 posts - 1 through 4 (of 4 total)
  • The topic ‘Removing Events dropdown from Toolbar by role’ is closed to new replies.