Custom ticket form hook fires too early
-
Both tribe_tickets_commerce_tickets_form_hook and tribe_tickets_rsvp_tickets_form_hook seem to be fired too early to be filtered from a theme’s functions file.
I could probably do it in a plugin, but because it relates to templating, it feels like it belongs in the theme.
To reproduce:
- Copy single-event.php to your theme for customization
- Configure tickets for an event
- View the event. Ticket should appear after meta (or wherever you have set it to appear)
- Add
do_action('foobar');
right afterthe_post()
in the new single-event template - Add `add_filter( ‘tribe_tickets_rsvp_tickets_form_hook’, function ( $hook ) {
die(‘filtered’);
return ‘foobar’;
});` to your functions.php file. - View event again
Expected: “filtered” is printed and page dies where ticket form is to be expected.
Actual: Ticket form is unaffected.Thoughts?
Viewing 6 replies - 1 through 6 (of 6 total)
Viewing 6 replies - 1 through 6 (of 6 total)
- The topic ‘Custom ticket form hook fires too early’ is closed to new replies.