Linked Venue Dropdown

Home Forums Calendar Products Events Calendar PRO Linked Venue Dropdown

Viewing 3 posts - 1 through 3 (of 3 total)
  • Author
    Posts
  • #1164802
    Tabytha Rourke
    Participant

    I am trying to filter the venue dropdown on the edit screen so that it only shows the venue that the user created, but I’m having trouble finding the function that creates this dropdown. I’ve managed to track it down to Chooser_Meta_box.php line 154:

    $this->linked_posts->saved_linked_post_dropdown( $this->post_type, $linked_post_id );

    However, I can’t find the actual origin for this saved_linked_post_dropdown function. Can anyone point me in the right direction?

    Thanks!

    #1166162
    George
    Participant

    Hey Tabytha,

    Apologies for the delayed reply here!

    It’s pretty tricky to modify those drop downs, unfortunately. There is no way to do it with plugin filters, for example, meaning you have to edit core plugin code. 🙁

    I say “unfortunately” in regards to this info because editing core plugins code means that you will lose the code changes any time you update the plugin! And you have to manually add the customizations back after each update.

    So, I strongly recommend against trying to modify the drop downs.

    With all that being said, however, this file is where you can find the function you are looking for:

    the-events-calendar/src/Tribe/Linked_Posts.php

    Around line 713 you will find the saved_linked_post_dropdown() function, where you can modify it if you would like to.

    Cheers!
    George

    #1175013
    Support Droid
    Keymaster

    Hey there! This thread has been pretty quiet for the last three weeks, so we’re going to go ahead and close it to avoid confusion with other topics. If you’re still looking for help with this, please do open a new thread, reference this one and we’d be more than happy to continue the conversation over there.

    Thanks so much!
    The Events Calendar Support Team

Viewing 3 posts - 1 through 3 (of 3 total)
  • The topic ‘Linked Venue Dropdown’ is closed to new replies.