Support

Home Forums Event Espresso Premium Conflict with Members plugin with recent update

Conflict with Members plugin with recent update

Posted: June 18, 2018 at 11:48 am

Viewing 3 reply threads


Froglegs

June 18, 2018 at 11:48 am

Hi, for the past two years we’ve been using the Members plugin by Justin Tadlock to secure pages to those logged in and with particular roles. Has been working great. In a recent EE update, the Content Permissions section (which we use to control access) has disappeared from the Event edit screen in the dashboard. All other sections are still there: Event Tickets & Datetimes, Venue Details, Excerpt, Custom Fields, etc. Would you please take a look at your earliest convenience. Thank you.


Josh

  • Support Staff

June 18, 2018 at 1:21 pm

Hi there,

I checked and I’m not sure how that particular feature could have ever worked with EE4 because of the way the Members plugin checks for a post type object.

I can suggest adding a little compatibility shim which will ensure the Content Permissions section loads if the editor is for the Event Espresso event post type. Here’s the shim:

add_action('load-toplevel_page_espresso_events', 'my_maybe_add_members_box');
function my_maybe_add_members_box() {
  add_filter(
        'members_enable__content_permissions',
        '__return_true'
  );
}

You can add the above to a functions plugin.


Froglegs

June 18, 2018 at 1:48 pm

Thanks, Josh! We’ll be trying that out your filter shortly.


Froglegs

June 21, 2018 at 12:45 pm

Works great. Thanks again!

Viewing 3 reply threads

The support post ‘Conflict with Members plugin with recent update’ 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