Quick question: how do I restrict the city and country to those added at the back end?
When a user is submitting an event in the front end - he/she can provide locations only for pre-defined city/country. Say for e.g. my location is London, UK. Then all events need to be restricted for London, UK only...
How can I achieve this? I wasn't sure so asking here...
thanks for this... but an issue remains... I want to only fix the city and country.... the user still needs to be able to add the actual address of the event... based on the code you shared no location details can be added... only city and country can be selected....
Use Case
Admin has restricted the City & Country for front end submissions of an event
User adds event details and location address for an event in the restricted city
Event attendee is able to filter the calendar for a City based events and not all addresses...
Hi there,
Quick question: how do I restrict the city and country to those added at the back end?
When a user is submitting an event in the front end - he/she can provide locations only for pre-defined city/country. Say for e.g. my location is London, UK. Then all events need to be restricted for London, UK only...
How can I achieve this? I wasn't sure so asking here...
Hi,
Add this filter in your theme functions.php file:
Stachethemes Developer
Hi Zhivko,
thanks for this... but an issue remains... I want to only fix the city and country.... the user still needs to be able to add the actual address of the event... based on the code you shared no location details can be added... only city and country can be selected....
Use Case
How can I achieve this please....