Developer hooks
Mapster WP Maps is built with developers in mind. We are developers ourselves (obviously) so it was important to make sure this plugin was properly extendable.
That being said, it’s your choice whether you want to build your maps completely from custom or to use Mapster WP Maps as a starting point. If you’ll need a lot of non-developers to be editing and changing data and adding geographies, then Mapster might be the right place. If you’re building a really large, complex, or feature-rich front-end map for a high-end site, then going custom might be best.
That said, here’s how the Developer Hooks work.
We follow the WordPress philosophy of allowing you to add your own functions at specific points in the code, when key events occur. You also can receive certain data at these points, such as the map
object or the various markers
or layers
that you’ve added to the map.
To some degree, you’ll have to learn about how Mapbox GL JS or Maplibre works to really work with this, since just about everything is done through those Javascript APIs.
To learn more and see a list of the available hooks and when to use them, visit the API documentation!