WordPress.org

Support

Support » Plugins and Hacks » [Resolved] [Plugin: SimpleMap Store Locator] Permit editors to edit/create maps

[Resolved] [Plugin: SimpleMap Store Locator] Permit editors to edit/create maps

  • nowton
    Participant

    @nowton

    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/

Viewing 3 replies - 1 through 3 (of 3 total)
  • 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

    nowton
    Participant

    @nowton

    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.

    Jason
    Participant

    @ijas0n

    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.)

Viewing 3 replies - 1 through 3 (of 3 total)
  • The topic ‘[Resolved] [Plugin: SimpleMap Store Locator] Permit editors to edit/create maps’ is closed to new replies.