Viewing 6 replies - 1 through 6 (of 6 total)
  • Add the following to your theme’s functions.php file.

    if ( ! current_user_can( 'publish_posts' ) ) {
        remove_menu_page( 'edit.php?post_type=tribe_events' );
    }

    That should remove the menu item for anyone not at least an Editor.

    Thread Starter Dobbydoo

    (@dobbydoo)

    Can you add it in to the plugin? I can’t modify functions.php. Looks like it’d be around line 3832 of lib/the-events-calendar.class.php (looking at the code for 3.5.1).

    Do not modify core files. Very bad practice and will be overwritten at any plugin update.

    If you can’t modify the theme can you add a plugin? If so just make a small plugin with this and any other modifications you may want.

    Thread Starter Dobbydoo

    (@dobbydoo)

    I can’t add anything to this WP installation.

    Since all the sub-menus of the plugin depend on the user having the publish_posts credential, is there a reason why you can’t check for the same permission for the parent menu?

    @dobbydoo, the above code will do as you want. I use it one a site. If you are unable to add or modify anything on this WP installation I’m not sure how you can fix this issue. I do see your point regarding displaying the menu for users not capable of actually adding events.

    Until a solution by Modern Tribe, you’ll have to try the above solution.

    Howdy,

    Thanks for the bug report DoobyDoo. We are planning to fix this in a future release. It was something we only noticed as we were releasing the last version, but it was not in time to fix it that release.

    – Brook

Viewing 6 replies - 1 through 6 (of 6 total)
  • The topic ‘Subscribers see "Events" tab’ is closed to new replies.