Support

Home Forums Event Espresso Premium How to make EE4 options available for non adminstrators

How to make EE4 options available for non adminstrators

Posted: October 27, 2014 at 4:31 am


Playgroup Queensland

October 27, 2014 at 4:31 am

Hi Guys – I’ve got EE4 installed on this site – and I’ve set up some custom profiles for web content editors that are not with full administration rights.

How do I get the EE panel to show for them?

Cheers


Josh

  • Support Staff

October 27, 2014 at 7:33 pm

Hi Sofia,

This is something that will change in Event Espresso 4.5 where you’ll be able to use a plugin like Members (developed by Justin Tadlock) to manage custom Event Espresso capabilities.

In the meantime, there’s a filter you can add to a custom plugin that will let non-admins access Event Espresso. Here’s a link to an update in a related thread that shows a few options along with some example code:

https://eventespresso.com/topic/ee4-paired-down-admin/#post-118343


Playgroup Queensland

October 29, 2014 at 7:47 pm

Thanks Josh

I added the following code to the theme functions file while did display the Events, Registrations, Transactions, Registration Form, wehn clicking on each of these I was taken to the WP Dashboard view, not to the view of each of the Event Espresso Pages. I then removed the filters from the theme functions and created a plugin but got the same result. Can I check the code is correct or if i am missing something? The code is as follows:


add_filter ('FHEE_espresso_registrations_capability', 'my_custom_espresso_registrations_capability');
function my_custom_espresso_registrations_capability($capability){
    return 'edit_posts';
}

add_filter ('FHEE_espresso_events_capability', 'my_custom_espresso_events_capability');
function my_custom_espresso_events_capability($capability){
    return 'edit_posts';
}
 
add_filter ('FHEE_espresso_transactions_capability', 'my_custom_espresso_transactions_capability');
function my_custom_espresso_transactions_capability($capability){
    return 'edit_posts';
}

add_filter ('FHEE_espresso_registration_form_capability', 'my_custom_espresso_transactions_capability');
function my_custom_espresso_registration_form_capability($capability){
    return 'edit_posts';
}

Cheers


Dean

October 30, 2014 at 2:45 am

Hi,

I tested the above code (though I change the capability to “read”) and saw no issues – screenshot http://take.ms/RWFr4

Do you have any other plugins that affect user roles/capabilities active?


Playgroup Queensland

November 2, 2014 at 10:35 pm

Thanks Dean

I changes my code to ‘read’ also but still got the same behaviour i.e. goes to Dashboard rather than the EE Custom Posts.

This is a screencast of what happens: http://screencast.com/t/QofvFAYp

I disabled plugins and it made no difference. Any more advice?


Dean

November 4, 2014 at 7:12 am

Hi,

Not currently. I have managed to recreate the issue (it’s very weird, it really did not do it the first time I tested), but as yet have been unable to narrow down why this is occurring.


Josh

  • Support Staff

November 4, 2014 at 8:08 am

Hi Sofia,

Did you add the ‘manage_options’ capability to the editor role? That’s an important step that often gets overlooked.

The support post ‘How to make EE4 options available for non adminstrators’ 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