Title: Limit markers
Last modified: July 12, 2023

---

# Limit markers

 *  Resolved [nakawa](https://wordpress.org/support/users/nmerlier/)
 * (@nmerlier)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/limit-markers/)
 * Hello,
 * First of all thank you for your support 🙂
   I have another question. How can I
   limit the number of locations a user can add?Thank you in advance

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

 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/limit-markers/#post-16892311)
 * Hi [@nmerlier](https://wordpress.org/support/users/nmerlier/),
 * That’s not possible by default. I assume this can be done with the help of PHP(
   check if user is author of a location > hide “+” button) but that’s out of scope
   of Open User Map.
 * Best regards,
   Daniel
 *  Thread Starter [nakawa](https://wordpress.org/support/users/nmerlier/)
 * (@nmerlier)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/limit-markers/#post-16892546)
 * Thanks for your response !
 * In which file can I add this PHP code?
 * Thanks !
 *  Plugin Author [100plugins](https://wordpress.org/support/users/100plugins/)
 * (@100plugins)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/limit-markers/#post-16892752)
 * Hi [@nmerlier](https://wordpress.org/support/users/nmerlier/),
 * You would need some expertise in PHP/WordPress programming. The code might be
   implemented in the functions.php of your theme.
 * Basically it should add a specific class to the body if the current user is already
   the author of any location. Based on the existence of the body class you could
   then hide the “+ Add location” button with CSS.
 * Best regards,
   Daniel
 *  Thread Starter [nakawa](https://wordpress.org/support/users/nmerlier/)
 * (@nmerlier)
 * [3 years, 3 months ago](https://wordpress.org/support/topic/limit-markers/#post-16892756)
 * Hello,
 * Thanks, that is good for me 🙂
 * Best regards,
 * Nicolas

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

 The topic ‘Limit markers’ is closed to new replies.

 * ![](https://ps.w.org/open-user-map/assets/icon-256x256.gif?rev=3723910)
 * [Open User Map – Interactive Leaflet Maps](https://wordpress.org/plugins/open-user-map/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/open-user-map/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/open-user-map/)
 * [Active Topics](https://wordpress.org/support/plugin/open-user-map/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/open-user-map/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/open-user-map/reviews/)

 * 4 replies
 * 2 participants
 * Last reply from: [nakawa](https://wordpress.org/support/users/nmerlier/)
 * Last activity: [3 years, 3 months ago](https://wordpress.org/support/topic/limit-markers/#post-16892756)
 * Status: resolved