If I restrict a ticket to only a certain role, it gives others this text:
The [event name] is available to members only. On Sale
Is there a way to just hide any tickets that people can’t access? There doesn’t seem to be a unique class to target and I need to have several sets of tickets, which will get messy. I’d really like people to only see the ticket lines that apply to them. But at the very least, I’d want to be able to change the wording so it makes a bit more sense.
By the way, when I updated the permissions on the ticket, it moved them out of order. I was only able to get them back into order by moving them around, saving, then moving them back into order. So, the source of the events being out of order appears to be using the custom capability function.
However, it is also possible to remove the tickets users do not have access to using another snippet, for example if I follow what it is you are trying to do, this should work for you:
The support post ‘Hide unavailable tickets?’ 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.
Support forum for Event Espresso 3 and Event Espresso 4.