Event Espresso checks the capabilities of the user rather the role (a role is just a collection of capabilities) but you should be able to hide some sections.
Only remove the sections you need to remove and note that some metaboxes EE will be expecting a response from so if you remove them the event may not save so you’ll need to test each change.
You can check the capability and remove the meta-boxes if the user doesn’t have a specific cap, for example:
if ( ! current_user_can( 'manage_options' ) {
//Remove page_templates metabox if the user does not have 'manage_options'
//capability which would usually be an admin role.
remove_meta_box( 'page_templates', 'espresso_events', 'side' );
}
There’s some example code in our code snippet library that you can use. Please note that you will not use all of the hooks there, you use only the ones that work to remove the sections you want to remove.
The support post ‘Edit Event Page – Hide sections’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.