WordPress.org

Ready to get started?Download WordPress

Forums

Restricting Admin User Capabilities (4 posts)

  1. tanver
    Member
    Posted 1 year ago #

    hi there,
    I am working on a wp site for one of my clients where I need to give restricted access to other Admin Users.
    I mean I want to limit capabilities of an Admin User, that is want to remove few of the capabilities for admin role which are their by default, if he is anyone other than me say 'XYZ'?
    Regards,

  2. David Choi
    Member
    Posted 1 year ago #

  3. tanver
    Member
    Posted 1 year ago #

    Thanks for your response but don't want to use any plugin and the other thing is I want to restrict it only for specif users and not all of the users belonging to Admin Group .. will be hiding few menu options and then want to make sure that the users don't have access to those hidden options even if they enter a direct URL.

  4. David Choi
    Member
    Posted 1 year ago #

    Yes, this plugin does exactly that for the Admin Panel options and menus. If you would like to code directly, that is possible inside functions.php, just refer to

    http://codex.wordpress.org/Function_Reference/get_role
    http://codex.wordpress.org/Function_Reference/add_role
    http://codex.wordpress.org/Function_Reference/remove_role

Topic Closed

This topic has been closed to new replies.

About this Topic