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/

You must be logged in to reply to this support post. Sign In or Register for an Account

Support forum for Event Espresso 3 and Event Espresso 4.
Documentation for EE3 and EE4
Documentation for Event Espresso 3

Documentation for Event Espresso 4

Status: publish

Updated by  Tony 1 week, 1 day ago ago

Topic Tags

Notifications

This topic is: not resolved
Do NOT follow this link or you will be banned from the site!