WordPress.org

Ready to get started?Download WordPress

Forums

SimpleMap Store Locator
[resolved] Permit editors to edit/create maps (4 posts)

  1. nowton
    Member
    Posted 2 years ago #

    As in title, currently the functionality is limited to admins only. However my client needs to be able to add and manage locations. Dug through the code, found nothing yet. Role Manager/Members plugin does not hook in to it, so I suppose there's some different userprivilege mechanism at work. Anyone care to shed some light on this? Thanks in advance.

    http://wordpress.org/extend/plugins/simplemap/

  2. Glenn Ansley
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,
    2.4 will relax these permissions. It is available now to premium subscribers but you're welcome to hack it yourself. Look in /simplemap/classes/admin.php

    Find any function call to add_menu or add_submenu_page and change the values accordingly. You're looking to change edit_plugins to something else.

    This should help: http://codex.wordpress.org/Roles_and_Capabilities#Capabilities

  3. nowton
    Member
    Posted 2 years ago #

    Wow, thanks for the prompt reply! I was able to instantly provide the client with only the required options, by changing the requirement to 'edit_posts'. Thanks.

  4. Jason
    Member
    Posted 2 years ago #

    This worked great! For those wanting it spelled out a bit more:
    1) Open /simplemap/classes/admin.php
    2) Starting on line 24 you'll see "add_menu_page" and "add_submenu_page" lines that correspond to each item (i.e. add locations, edit locations.
    3) Change the instance of "edit_plugins" to "edit_posts", save, and that will give the editor privileges to that item.

    Thanks again. Amazing plugin!

    (Feature Request: Lose the table tags with the search fields. It goes all out of whack when you add tags and categories.)

Topic Closed

This topic has been closed to new replies.

About this Plugin

About this Topic

Tags