WordPress.org

Forums

WPtouch Mobile Plugin
Editor role / Permissions to edit WPtouch settings (2 posts)

  1. Bozz
    Member
    Posted 2 years ago #

    Hi--

    Great plugin. I'd like to grant the Editor role access to edit the settings of this plugin. I can't find an appropriate capability to grant permission to this role (I am using the Members plugin to manage user roles).

    Is there a custom capability to reference? If not, what capability does this plugin check for when determining if a user is admin?

    Thanks!

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

  2. BraveNewCode Inc.
    Member
    Plugin Author

    Posted 2 years ago #

    Hi,

    You can try adding the admin menu for Editors and other users by detecting the user level and then doing an 'action' depending on the user's level.

    Example:

    global $current_user;
    get_currentuserinfo();
    if ($current_user->user_level == 1 ) //do something

    It'll need to be included in your theme's functions.php file.

Topic Closed

This topic has been closed to new replies.

About this Plugin

  • WPtouch Mobile Plugin
  • Frequently Asked Questions
  • Support Threads
  • Reviews

About this Topic

Tags