• melanie bund

    (@melanie-bund)


    Hi how can i give adinistrator a double role? that administrator can also be a user once logged in. On our site you have to be a member/user to post photos and when i as admin want to check the site i have to logout and login as a user. Is the a way to add to functions.php that admin can also be a user?
    thank you
    melanie

Viewing 2 replies - 1 through 2 (of 2 total)
  • Christian Chung

    (@christian1012)

    Permissions in WordPress should (in most cases) be inherited. This is the default functionality for how core handles permission. Certain actions are given a capability ex. edit_posts which allows a user to edit posts. In the default setting, editors can edit posts. This capability is inherited by administrators. In practice, administrators can do everything editors can do, plus other things.

    If you’re using a plugin to achieve the functionality in question, contact the plugin author. If you’ve created this yourself, ensure that any custom capabilities are inherited.

    If it doesn’t feel like I’ve answered your question, no you cannot have two roles for one user. But at the same time, there should never be anything a user can do that an administrator cannot do.

    Thread Starter melanie bund

    (@melanie-bund)

    ok thanks christian, so there is no way that in functions.php you can override and give administrator 2 roles, i am using 2 databases, so, but if i add admin as a user in the other database it cannot override the wp database? so i am stuck… thanks for your help, appreciate your time and effort
    melanie

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘create double role for administor’ is closed to new replies.