Override template files with custom plugin
-
Hello!
I try to override the event-ticket template files but not via a theme (it’s not possible in my case to add it to the used theme or add a child theme).
For “The Events Calendar” I already use the
tribe_template_path_list
filter to addarray( ..., 'path' => my_plugin()->get_plugin_path() . 'tribe/events/v2' )
with success.
This, however, does not work if I add another folder withtribe/tickets/v2
All I want to do for now is changing theGoing
string on the RSVP Button.
According to https://theeventscalendar.com/knowledgebase/ticket-rsvp-template-files/ that’ll be/v2/rsvp/actions/rsvp/going.php
So towp-content/plugins/myplugin
I already have the folder structure for TEC with/tribe/events/v2
I already added/tribe/tickets/v2
and within that my custom going.php. Full path on myplugin root is/tribe/tickets/v2/rsvp/actions/going.php
All that’s missing is the correct way to let TEC / event-tickets know that it should look for event-ticket templates withinmyplugin/tribe/tickets/v2
Thx in advance for any help
let me know if you need any further code samples of mine
- The topic ‘Override template files with custom plugin’ is closed to new replies.