Support

Home Forums WP User Integration Members and Non Members tickets Reply To: Members and Non Members tickets

Reply To: Members and Non Members tickets

Author Replies
Tony # Posted on March 22, 2018 at 11:33 am

Hi there,

This snippets should do what you need:

https://gist.github.com/Pebblo/16a7dabb6a6d8f0f3d4370ccda06098b#file-functions2-php

It checks if there is no minimum capability set on a ticket and if the user is logged in but NOT administrator, removes the ticket from view.

Note that this will apply to all of your events by default, so a logged in user will not see any tickets on an event if none of them have a capability set on them. The first functions.php example from the above snippet checks for a ‘hide_no_cap_tickets’ custom field set to true before doing the above if you’d like to avoid that.

Do NOT follow this link or you will be banned from the site!