Posted: August 28, 2024 at 9:28 pm
Is there a way I could write a php filter in my site plugin that would hide a ticket from the registration form? I’m comfortable setting up the filter conditions, I just don’t know if there’s something an EE target I can use to hide the row. |
|
Can you give example? At the moment, the only setting we have is to hide ticket if it is expired. Or you want to hide ticket based on membership? thanks |
|
Not based on login; I can’t create wp users for my ~300 “special” attendees. What I want to do is: I know how to do everything described above except hide one of the table rows in the registration form. Is there something I can target with my filter to do that? |
|
Hi Jeremy, Unfortunately, no such options exist to hide/filter tickets from the event. However, as a workaround you can create separate events for each of the five tickets and make the events Password Protected: https://tinyurl.com/2dcjjan4 |
|
I’m not asking for an option in EE; I know selective row hiding isn’t already a built-in feature. I’m asking for the “FHEE_EE_whatever” codes used for each row on the registration table. Also, as stated above “I can’t create wp users for my ~300 “special” attendees.” so I cannot use password protected events (and also need all of the tickets to be in the same event for other reasons). |
|
-how do you plan doing the condition? through JS Script? Registration table? you mean here? /badges/event-checkout/ You can check the filter/action for the checkout page. We don’t currently have a full list of all of the actions available within EE, however they are all prefixed with either AHEE__ (Action Hook Event Espresso) or FHEE__ (Filter Hook Event Espresso) so if you search for either of those strings in a text editor/IDE you’ll find all of our hooks. Thanks |
|
I haven’t tried doing it yet, but I think https://eventespresso.com/topic/ticket-list-filtering/#post-346095 will be able to do exactly what I want here. If it works, I’ll post my code. |
|
Sure, please let us know if you are facing any issues there. |
|
You must be logged in to reply to this support post. Sign In or Register for an Account