Home › Forums › Calendar Products › Events Calendar PRO › Extending Venues
- This topic has 21 replies, 5 voices, and was last updated 11 years, 7 months ago by
Leah.
-
AuthorPosts
-
September 16, 2013 at 1:26 pm #66134
Stephen
ParticipantHey again Barry,
Update, I think that the allow_cta_search() function is the culprit. If I prevent that function from running, the tribe_events_register_venue_type_args filter seems to work fine.September 16, 2013 at 2:35 pm #66145Stephen
ParticipantSo I suppose now I am looking for a way to either:
1) Fix the allow_cta_search() function to use the arguments supplied to the tribe_events_register_venue_type_args filter
or
2) prevent the allow_cta_search() function from running without having to hack the Events Calendar Pro plugin
Any help you could provide would be much appreciated. Thanks again.
September 16, 2013 at 2:48 pm #66147Barry
MemberHi Stephen, yep you’re right, that could probably be re-structured to play a little more nicely and I’ll make a note of that.
If using the tribe_events_register_venue_type_args isn’t going to be viable in this case however then you’ll need to use an alternative approach rather like PRO itself is and re-register the post type.
Thanks again!
September 16, 2013 at 4:58 pm #66201Stephen
ParticipantSo I was able to de-register the problematic function with the following code (hopefully it will show):
add_action(‘init’, ‘custom_unregister_functions’);
function custom_unregister_functions() {
$pro_instance = TribeEventsPro::instance();
//unregister
remove_action( ‘wp_loaded’, array( $pro_instance, ‘allow_cpt_search’ ) );
}Then I just set the register post type variable to ‘exclude_from_search’ when I was using the now-working tribe_events_register_venue_type_arg filter. I considered this to be a preferable solution to registering the post type all over again (in what would have been it’s third registration). Hopefully that chain of events will be restructured to play more nicely, as you said, in future versions of the Events Calendar Pro add-on.
September 16, 2013 at 5:47 pm #66212Barry
MemberExcellent, sounds like you’re all sorted here and hopefully we will indeed see a change here further down the line.
Thanks again!
November 5, 2013 at 3:29 pm #74877Kelly
ParticipantHi, Stephen. This is just a note to let you know that we didn’t get a chance to look at your issue for our maintenance release this time around.
We do plan to find a way to help you out with this. We look forward to addressing this as soon as we’ve got bandwidth/resources to allow it.
Thanks for being part of the TEC community!
September 26, 2014 at 12:00 pm #768944Leah
MemberHi there,
I just wanted to let you know that we were able to work on this issue for our upcoming 3.8 release. Keep an eye out on your site for an update announcement! If you update and are still seeing this problem, please post a new thread so we can check it out. Thank you for your patience while we got this fix in place.
Best,
Leah
and the team at Modern Tribe -
AuthorPosts
- The topic ‘Extending Venues’ is closed to new replies.
