Restrict Venue State options

Home Forums Calendar Products Community Events Restrict Venue State options

Viewing 6 posts - 1 through 6 (of 6 total)
  • Author
    Posts
  • #1342599
    Sean
    Participant

    Hi,

    We have a regional calendar and only want users to be able to select certain states from the State dropdown of the Venue section. Is there a snippet that will allow us to change which states are included in that dropdown?

    Best,
    Karly

    #1342751
    Cliff
    Member

    Hi, Karly.

    This isn’t currently available, but I submitted a pull request to make it so in a future version: https://github.com/moderntribe/tribe-common/pull/510/files

    I’d hope this becomes available in a near-term release.

    Please let me know if you have any follow-up questions on this topic.

    #1342790
    Sean
    Participant

    Good evening Cliff,

    Thanks for getting back to me so quickly. Really appreciate you adding this to the upcoming releases. Looking forward to it being added!

    When the filter is added, is there a example you could provide of the code snippet we could add to our functions.php file? I understand the filter name might be undetermined, but having the structure on hand so we can simply adjust the filter name and include our desired states would be very helpful.

    Best,
    Karly

    #1343252
    Cliff
    Member

    You’re welcome. It got approved today so I’d imagine this should work once it’s included in an upcoming release:

    https://gist.github.com/cliffordp/96d7cc914ce1479f4ea97733c8b5a5c4

    #1343357
    Sean
    Participant

    Awesome, thank you Cliff!

    #1344360
    Cliff
    Member

    You’re very welcome! 🙂

Viewing 6 posts - 1 through 6 (of 6 total)
  • The topic ‘Restrict Venue State options’ is closed to new replies.