Posted: September 2, 2015 at 9:20 am
|
Hello again, i’m looking for a hook/filter to display the tickets of events based on membership status (came from Paid Membeship Pro plugin). Many thanks for help (again ๐ ) |
Hi Simone, The EE4 User Integration add-on adds a ‘capability’ section to the ticket editor – http://take.ms/j2Da2 In that section you can input the minimum required capability for the user to access that ticket, is that not what you are looking for? The check for the capability is done using this hook FHEE__ticket_selector_chart_template__do_ticket_inside_row however you are going to need to also store the capability needed for a specific ticket, both of which the WP Users Add-on does for you. Doing this without the Users Integration would require custom development which is not something we can provide support for. |
|
|
Hi Tony, i have purchased EE4 User integration add-on with EE4, but i need to filter ticket selector based on a membership status coming from another plugin (paid membership pro). What i need is modify the $template_args[‘tickets’] inside the function display_ticket_selector (plugins/event-espresso-core-reg/modules/ticket_selector line:252) through an hook. But i was not able to find the proper hook. I’m not really expert in wordpress development, maybe the best thing for me is extend the class and overwrite the behaviour, but i would like to follow the wordpress guidelines to find a valid solution. Thank you, |
We can not provide customisations to enable other plugins to work with Event Espresso on the forums. Currently Event Espresso uses the capabilities of the user logged into the site to determine if the ticket can be displayed. I’m not familiar within how Paid Memberships Pro works but it appears to have memberships that are completely separate from the users role, however it does appear to have an add-on that will update the role. Look here: That allows you you remove/add a capability based the membership, which then allows you to use the feature mentioned previously without any custom coding. Would that work better? (You’ll want to confirm that is actually how that PMP Add-on works before hand) |
|
|
Dear Tony, after some work i have choosen the solution you have suggested me. The Paid Membership Pro has membership completely separate from wordpress user role, but the add-on you have mentioned definetely fixes the game, and i was able to use user capabalities, based on membership, in tickets selector (and thank to EE4 User integration). So, again, thanks for your support! Really appreciated! |
Great, I’m glad it worked ๐ Lets us know if you have any further questions |
|
The support post ‘Hook or Filter to display available tickets for membership status’ 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.