Support

Home Forums Event Espresso Premium How to Hide "Help & Support" from Event Administrator Menu

How to Hide "Help & Support" from Event Administrator Menu

Posted: July 20, 2019 at 7:56 am


Lindsay Steyn

July 20, 2019 at 7:56 am

Hi

I would like to hide / disable the “Help & Support” menu item from the EE4 menu items when an event administrator logs in.

Can you please advise whether there is a simple setting to disable this item for this role or if not, then how to go about this please.

Thanks very much.


Josh

  • Support Staff

July 20, 2019 at 8:42 am

Hi,

You can add the following code:

add_action('admin_init', 'my_remove_ee_support_page');

function my_remove_ee_support_page() {
    if(!current_user_can('administrator')) {
        remove_submenu_page('espresso_events', 'espresso_support');
    }
}

and that will remove the Support admin page for all users that do not have full admin capabilities (this includes the Event Administrator user accounts).

You can add the above to a functions plugin or, if available, into your WordPress child theme’s functions.php file.


Lindsay Steyn

July 20, 2019 at 12:38 pm

Thank you Josh – it worked perfectly.

The support post ‘How to Hide "Help & Support" from Event Administrator Menu’ is closed to new replies.

Have a question about this support post? Create a new support post in our support forums and include a link to this existing support post so we can help you.

Event Espresso