• Resolved nakawa

    (@nmerlier)


    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

    (@100plugins)

    Hi @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

    (@nmerlier)

    Thanks for your response !

    In which file can I add this PHP code?

    Thanks !

    Plugin Author 100plugins

    (@100plugins)

    Hi @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

    (@nmerlier)

    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.