Support

Home Forums Event Espresso Premium EE4- Roles and Permissions

EE4- Roles and Permissions

Posted: August 25, 2014 at 9:03 am


ANDERSON DELIMA

August 25, 2014 at 9:03 am

Hi,

Currently only the “Administrator” can see the EE4 Event Espresso option inside WordPress.

How can we make this option visible for other WP Roles (Editor,Author,…)? We don’t want to give our client the full Administrator access for safety.

Thanks.


Josh

  • Support Staff

August 25, 2014 at 11:29 am

Hi Anderson,

You can make individual Event Espresso menus options visible for Editor and Authors (or any other user role for that matter) by following these two steps:

1) Use the WP User Role Editor plugin, Members plugin, or equivalent to grant the core manage_options capability to the user role in question. Here is a screenshot that shows manage_options being added to the editor role with the User Role plugin.

2) Add some code to your site’s functionality plugin. The code will make use of some filters that are included in Event Espresso 4 that allow for making Event Espresso’s menu items visible. The example code that follows will give user roles that can ‘publish_posts’ (which include editors and authors) access to events, registrations, transactions, registration forms.

https://gist.github.com/joshfeck/1f89ac4e0fd7f536f2cb


ANDERSON DELIMA

August 25, 2014 at 3:43 pm

Thanks Josh. Where should I add this code? to WP User Role plug in?


Josh

  • Support Staff

August 25, 2014 at 6:22 pm

Hi Anderson,

The best place to add the code would be in a site specific plugin. If your site does not have one, we have a guide that was written especially for you:

https://eventespresso.com/wiki/create-site-specific-plugin-wordpress-site/


ANDERSON DELIMA

August 25, 2014 at 7:49 pm

Great, thank you Josh.
It worked!

Thanks.


Dean

August 26, 2014 at 1:35 am

Hi,

Can we mark this thread as resolved or do you have any further questions regarding this topic?

The support post ‘EE4- Roles and Permissions’ 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