Extending Venues

Home Forums Calendar Products Events Calendar PRO Extending Venues

Viewing 7 posts - 16 through 22 (of 22 total)
  • Author
    Posts
  • #66134
    Stephen
    Participant

    Hey 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.

    #66145
    Stephen
    Participant

    So 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.

    #66147
    Barry
    Member

    Hi 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!

    #66201
    Stephen
    Participant

    So 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.

    #66212
    Barry
    Member

    Excellent, sounds like you’re all sorted here and hopefully we will indeed see a change here further down the line.

    Thanks again!

    #74877
    Kelly
    Participant

    Hi, 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!

    #768944
    Leah
    Member

    Hi 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

Viewing 7 posts - 16 through 22 (of 22 total)
  • The topic ‘Extending Venues’ is closed to new replies.