Are you using our Paid Memberships Pro Memberships Add On but need to change the default map starting point. The code recipe below will help you to override this starting point and select one more suited to your needs.
If you’d like to set the default start location to one of your preference, you can make use of the code recipe below. This recipe will apply the same start location to all maps on your website.
The Code Recipe
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
You can also specify which map you’d like to override the start point on by using the following code recipe. The $ID variable references the ID attribute used in each map shortcode
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Jarryd Long is the Support Manager at Paid Memberships Pro. With over 11 years of experience developing and supporting WordPress products, he has worked with a wide range of tools, from map and live chat plugins to podcasting and now membership software.
Jarryd enjoys working at Paid Memberships Pro for its supportive and positive team culture, where collaboration and mutual respect are key.
Outside of work, Jarryd is an old car enthusiast and is gradually restoring a Morris Oxford, a project that combines his love for classic vehicles and hands-on craftsmanship.
Free Course: Membership Site Development—The Basics
Develop a deeper understanding of membership site development in this beginner-level course. Learn how to make your site work better, save yourself time and money, and improve your site's performance.