andi1984
Forum Replies Created
-
Whoops, typo in last post. I mean the function
addnot `addin’Ahh no, you apply filter.
But the same question where do you add filter?
How is the function addin em-bookings.php connected to
`do_action(’em_booking_add’, $EM_Event, $EM_Booking, $post_validation);’
I guess you call the add function with this line of code, don’t you? If yes, where do you specify that you want to call the add function in em-bookings.php?
Do you know what I mean? Where is the connection?
Ahhh… I found it. My fault was to only search for do_action, but you do it with filters.
Bing! Problem solved! Thanks for help!
Thanks for your feedback Marcus.
What I miss is, according to API, a Action Function which is hooked into ’em_booking’.
Which function exactly is going to be executed after the call of do_action(…)?
Same for:
`do_action(’em_booking_add’, $EM_Event, $EM_Booking, $post_validation);’
to which you refer, where I should add the corresponding booking_status. So I hook into the WP action ’em_booking_add’ with the three parameters. But which Action Function is fired? And where can I find the corresponding action?
In the API example it’s clear, because I can find a corresponding add_action. But here I can’t.
Sorry. I don’t get. But with high probability it’s really easy. But for me a link between do_action and the (for me unknown) function (which is hooked into this em_booking_add call).
Sorry for my “stupidity”.
Greets,
Andreas