Home › Forums › Calendar Products › Events Calendar PRO › Defaultly check "use lat lng"
- This topic has 3 replies, 2 voices, and was last updated 5 years, 8 months ago by Cliff.
-
AuthorPosts
-
September 7, 2018 at 7:48 am #1616215AdageParticipant
Hello,
I’d like to defaultly check the “use lat lng” checkbox on Venue registration.
Thank youSeptember 7, 2018 at 10:06 pm #1616723CliffMemberHi. You posted to our Events Calendar PRO forum, but I see you also have a Community Events license. Are you asking about Events Calendar PRO’s lat/long setting within the wp-admin Event and/or Venue edit screen?
September 8, 2018 at 1:33 am #1616745AdageParticipantI was asking about Events Calendar PRO, but if it’s possible on both it would be great. Thank you.
September 10, 2018 at 2:00 pm #1617974CliffMemberWell it’s possible in Events Calendar PRO but not Community Events.
The checkbox comes from /wp-content/plugins/events-calendar-pro/src/Tribe/Geo_Loc.php
You could add some JavaScript to the admin that checks #VenueOverwriteCoords by default
Alternatively, you could filter — using hooks related to get_post_meta() — for the _VenueOverwriteCoords custom field.
Either way you go, you should ensure it has the necessary protections against applying to things outside of the expected context of editing a Venue.
This is not as easily possible (not that JS or PHP for Events Calendar PRO is “easy”) for Community Events because the custom coordinates inputs do not exist on the Community Events Venue edit template.
If you need some coding help, you may want to ask your own developer or reference our Customizations Documentation, which includes a link to Hire A Freelancer.
October 2, 2018 at 9:35 am #1635569Support DroidKeymasterHey 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 -
AuthorPosts
- The topic ‘Defaultly check "use lat lng"’ is closed to new replies.