• Resolved amministratore01pi

    (@amministratore01pi)


    Hi, I’m preparing a site for a client and for some management reasons of various installed plugins I created two Administrator users (one for me and one for the client). Now, only for this user (client) I want to hide some menu items. Is there a possibility?

    Thanks for the help

Viewing 4 replies - 1 through 4 (of 4 total)
  • Hi @amministratore01pi ,

    Yes, WordPress offers this natively; it is called roles and capabilities. There are multiple ways to work with that, via custom code or free plugins.

    You can ease the process by following this official support guide, which includes a list of recommended plugins that work with that.

    You will basically:

    • Install a free plugin,
    • Create a new user role,
    • Deny access to the functions you want to hide,
    • Create a new user with this custom role.

    The options you defined previously will be unavailable when the user logs in.

    Moderator bcworkz

    (@bcworkz)

    Role capability is indeed the intended way to manage access to admin menu items, but how well that works depends on which menu items you want to hide. It’s possible the ones you want to hide require the same capability as ones they must have access to. You can have finer grain control by manipulating the global $menu and $submenu arrays for certain users. Note that manipulating these arrays can remove certain menu items, but if a user knows the URL of the hidden item’s destination, they could still go there and do something you don’t intend to allow. But the lack of a menu item ought to deter all but the most savvy of WP users. Just know that it’s not 100% secure.

    Thread Starter amministratore01pi

    (@amministratore01pi)

    Ok @bcworkz Thanks so much

    Thread Starter amministratore01pi

    (@amministratore01pi)

    Thanks to you too @pagelab for the solutions, I’ll see how to organize myself at this point ??

Viewing 4 replies - 1 through 4 (of 4 total)
  • You must be logged in to reply to this topic.