Support

Home Forums Event Espresso Premium Hook or Filter to display available tickets for membership status

Hook or Filter to display available tickets for membership status

Posted: September 2, 2015 at 9:20 am

Viewing 5 reply threads


simone

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).
I check there is not an integration with Paid Membership Pro plugin in EE, and The EE User Integration is not enough for my needs. I think with a right hook/filter I could easy have a such of this integration, but i can’t find a list of hook/filter for EE Plugin.

Many thanks for help (again ๐Ÿ™‚ )
Simone


Tony

  • Support Staff

September 3, 2015 at 4:32 am

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.


simone

September 3, 2015 at 6:43 am

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,
Simone Li Gregni


Tony

  • Support Staff

September 3, 2015 at 2:10 pm

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:

http://www.paidmembershipspro.com/2014/01/automatically-create-wordpress-role-membership-level-thanks-josh-levinson/

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)


simone

September 7, 2015 at 3:10 am

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!
Simone


Tony

  • Support Staff

September 7, 2015 at 4:10 am

Great, I’m glad it worked ๐Ÿ™‚

Lets us know if you have any further questions

Viewing 5 reply threads

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.

Event Espresso