Support

Home Forums Event Espresso Premium Allow a Custom User role to access Event Espresso

Allow a Custom User role to access Event Espresso

Posted: July 31, 2014 at 7:37 am

Viewing 3 reply threads


Zoe E

July 31, 2014 at 7:37 am

Wordpress Version: 3.9.1
Event Expresso: Version 4.2.7.p
It is a new Installation.

We have Event Espresso on a wordpress site with a custom user role called “Training”

Using the WordPress add_role function, what parameters do we need to pass through to give them users access to event Espresso.


Tony

  • Support Staff

August 1, 2014 at 9:12 am

Hi Zoe E,

Currently Event Espresso 4 is designed to work with the Administrator role.

Currently you could add all capabilities to another role and it would still not allow access to Event Espresso.

We are working on adding custom capabilities through EE4.


Zoe E

August 4, 2014 at 1:50 am

Hi Tony, this is quite a big problem for us, we have implimented EE4 for a client and they need it to work with their custom admin roles.

Is there anything we can do to work around this?? I’d ideally like to leave them on EE4.

Absolute worse case I’ll need to swap their licence for EEE3…

Let me know if there is anyway we can get it to work.

Zoe


Josh

  • Support Staff

August 4, 2014 at 2:54 pm

Hi Zoe,

Like Tony mentioned before, we are working on adding support for custom capabilities and support for mapping them to custom user roles to Event Espresso 4.

In the meantime, you can use some filters to allow access to specific parts of the Event Espresso admin. For example, let’s say you want to grant access to events, registrations, and transactions. Here’s what you can do:

1) Use add_role() or Justin Tadlock’s member plugin to assign the ‘manage_options’ cap and any applicable ‘*_posts’ caps to the Training role. (these include ‘publish_posts’ and ‘edit_posts’).
2) The code you can add to your custom functions file:
https://gist.github.com/joshfeck/1f89ac4e0fd7f536f2cb
3) Optionally use remove_menu_page() or a plugin like Adminimize to hide any unwanted option screens from the WP menu for the trainers.

Viewing 3 reply threads

The support post ‘Allow a Custom User role to access Event Espresso’ 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