Remove action from plugin in child theme functions.php
Thanks for reaching out to us! Let me help you with this topic.
First, please let me note that we are fairly limited in how much support we can give for custom development questions like that.
That said, we always like helping out and at least point users into the right direction as much possible.
Try using the following code to remove that action:
remove_action( 'tribe_events_date_display', array( 'Tribe__Events__Community__Event_Form', 'loadRecurrenceData' ) );
Does it work for you? Please let me know. 🙂
Thanks for your reply. Since contacting you, I discovered there is a recurrence.php template which I can override in my child theme and use to remove the relevant code in the front-end. This is a much simpler solution.
I did previously add the remove_action code that you supplied to my child theme functions file but this didn’t work for some reason. It may have been to do with the ordering as obviously it can’t be removed before it’s been added!
Anyway, the issue is now resolved so thank you for your help.
I’m sorry the code didn’t work for you, but super glad you could find a solution with a template override. That’s a great approach.
Thanks for following up to let me know about it.
I’ll close this thread now, but feel free to open a new topic if anything comes up and we’ll be happy to help 🙂
The topic ‘Remove action from plugin in child theme functions.php’ is closed to new replies.