Title: Programmatically add marker
Last modified: August 31, 2016

---

# Programmatically add marker

 *  Resolved [calello](https://wordpress.org/support/users/calello/)
 * (@calello)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/programmatically-add-marker/)
 * Hi everybody!
 * Thank you for the work with this plugin, it’s great!
 * two questions:
    1) is it possible to add programmatically a marker? and 2) where
   are data saved? in a new table in the WP database or in a file?
 * Thank you so much!
 * M
 * [https://wordpress.org/plugins/leaflet-maps-marker/](https://wordpress.org/plugins/leaflet-maps-marker/)

Viewing 4 replies - 1 through 4 (of 4 total)

 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/programmatically-add-marker/#post-7000208)
 * thanks for your feedback!
 * ad 1) pro version offers several APIs, see [https://mapsmarker.com/mapsmarker-api](https://mapsmarker.com/mapsmarker-api)
   for details (REST API support will be added with v2.7)
 * ad 2) data is saved in 2 tables: wp_leafletmapsmarker_markers and wp_leafletmapsmarker_layers
 * best,
 * Robert
 *  Thread Starter [calello](https://wordpress.org/support/users/calello/)
 * (@calello)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/programmatically-add-marker/#post-7000341)
 * Hi Robert, thank you for the fast reply!
 * I’m on the 30-day free trial of the pro version, I have to try the API.
    Yes,
   I found my layer and my marker in the tables that you have shown me. Could I 
   also use a simple operation of “adding in the database” markers and layers?
 * Thank you again!
 *  Plugin Author [Robert Seyfriedsberger](https://wordpress.org/support/users/harmr/)
 * (@harmr)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/programmatically-add-marker/#post-7000357)
 * Hi,
    as said before markers can be added by using either the Web API or the MMPAPI
   class. More infos at [https://mapsmarker.com/mapsmarker-api](https://mapsmarker.com/mapsmarker-api)
 * Example GET request for adding a new marker, title Headquarter, geocode Main 
   Street 1 Washington by using the WebAPI:
    [http://your-domain/wp-content/plugins/leaflet-maps-marker-pro/leaflet-api.php?key=YOUR_PUBLIC_KEY&signature=YOUR_SIGNATURE&expires=YOUR_EXPIRE_VALUE&action=add&type=marker&markername=Headquarter&geocode=Main](http://your-domain/wp-content/plugins/leaflet-maps-marker-pro/leaflet-api.php?key=YOUR_PUBLIC_KEY&signature=YOUR_SIGNATURE&expires=YOUR_EXPIRE_VALUE&action=add&type=marker&markername=Headquarter&geocode=Main)
   Street 1 Washington
 * The documentation and a usage example for MMPAPI class to add a marker available
   at [https://www.mapsmarker.com/wp-content/uploads/mmpapi/#add_marker](https://www.mapsmarker.com/wp-content/uploads/mmpapi/#add_marker)
   
   best,
 * Robert
 *  Thread Starter [calello](https://wordpress.org/support/users/calello/)
 * (@calello)
 * [10 years, 4 months ago](https://wordpress.org/support/topic/programmatically-add-marker/#post-7000467)
 * Thank you for the help!

Viewing 4 replies - 1 through 4 (of 4 total)

The topic ‘Programmatically add marker’ is closed to new replies.

 * ![](https://ps.w.org/leaflet-maps-marker/assets/icon.svg?rev=970936)
 * [Leaflet Maps Marker (Google Maps, OpenStreetMap, Bing Maps)](https://wordpress.org/plugins/leaflet-maps-marker/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/leaflet-maps-marker/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/leaflet-maps-marker/)
 * [Active Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/leaflet-maps-marker/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/leaflet-maps-marker/reviews/)

## Tags

 * [save](https://wordpress.org/support/topic-tag/save/)

 * 4 replies
 * 2 participants
 * Last reply from: [calello](https://wordpress.org/support/users/calello/)
 * Last activity: [10 years, 4 months ago](https://wordpress.org/support/topic/programmatically-add-marker/#post-7000467)
 * Status: resolved