Posted: March 6, 2014 at 4:49 pm
|
EE4:4.8.1reg I have created a role Event Manager with the plugin User Role Editor. I have designated the following permissions (capabilities) for this role, but when the user with that role logs in, he is not able to access Espresso Events (but he sees the link only at the top of the admin tool bar). Am I missing some capability or there is a plugin conflict?: delete_event_categories |
Hi there, This really isn’t a plugin conflict because in order to access Event Espresso menus a role management plugin would have to use an Event Espresso-specific filter: Inside the EE_Admin_Page_Init class there is a filter hook that can be used by a plugin developer to change the defaults: apply_filters( 'FHEE_' . $this->menu_slug . '_capability', $capability ) Where menu_slug corresponds to the menu slug for the page system (i.e. espresso_events) that affects the menu being shown. |
|
|
Hi Josh, Is there a list of all Espresso Events capabilities somewhere? |
Hi there, As far as I know, there are no Event Espresso capabilities. That said, you can use existing capabilities and allow users that have a specific capability to access a specific Event Espresso menu. For example, you can assign the ‘manage_options’ capability to a user role and use Event Espresso’s filters to grant access by writing a few functions like this: add_filter ('FHEE_management_capability', 'my_custom_menu_management_capability'); function my_custom_menu_management_capability() { return 'manage_options'; } add_filter ('FHEE_espresso_events_capability', 'my_custom_espresso_events_capability'); function my_custom_espresso_events_capability($capability){ return 'manage_options'; } add_filter ('FHEE_espresso_registrations_capability', 'my_custom_espresso_registrations_capability'); function my_custom_espresso_registrations_capability($capability){ return 'manage_options'; } |
|
Update: Starting with EE4.4, the filters have changed slightly. Please see this update for more info: https://eventespresso.com/topic/ee4-paired-down-admin/#post-118343 Starting with EE4.5, Event Espresso capabilities are added, which allow for more finely tuned control over who can do what and you’ll be able to manage the capabilities by using a plugin like Members from Justin Tadlock. |
|
|
I LOVE MEMBERS PLUGIN. Thank you, its the best of the plugins, I had even contacted Justin about this. How can I get Beta access? Need this badly. |
Hi, This is available from the pre-release channel. Be sure to backup your WordPress before making any changes! https://eventespresso.com/users/timnethers/#ee4-pre-downloads — |
|
The support post ‘EE4 creating a role to just manage Espresso Events’ 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.