Support

Home Forums Event Espresso Premium People Admin Addon: Filter user lists by type of user

People Admin Addon: Filter user lists by type of user

Posted: September 10, 2019 at 4:32 pm


eschwarz

September 10, 2019 at 4:32 pm

I setup different types for users. In the add event page, I want to filter the lists that assign users. For example, I have a user type called “Organizer”. The add event page there is a section for “Assign Organizer” that lists all users, but the lists includes all of the users. I only want to show users with the type “Organizer”.


Tony

  • Support Staff

September 11, 2019 at 4:53 am

Hi there,

Currently, we don’t have a filter you can use for this, but the metabox template can be overridden for a custom version within the root directory of your theme using this function:

https://gist.github.com/Pebblo/4703f274437ac01b00ef093caa8646f5

So you could copy the \eea-people-addon\admin\people\templates\people_type_event_metabox_details.template.php template into your theme, then within that template check the person’s type matches the current people_type variable and if not, continue to the next person.

Whilst not the same, you can find an example of another user using the above function to override the template and do their own filtering here:

https://eventespresso.com/topic/show-only-people-added-by-user-when-adding-new-event/

The support post ‘People Admin Addon: Filter user lists by type of user’ 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