By default, WP Ghost is only visible to administrators in the WordPress menu. However, you can customize its visibility with a plugin like Roles & Capabilities. This guide will walk you through hiding the plugin from all users and show it only to specific users.

Install the Roles & Capabilities

  1. Log in to your WordPress admin dashboard.
  2. Navigate to Plugins > Add New.
  3. Click Install Now and then Activate.

Grant a Specific User Access to WP Ghost

To allow only a specific user to view and manage WP Ghost, follow these steps:

Access Users > All Users

  • Locate the user you want to grant access to and click on their name or hover and click Capabilities.
Users Capabilities

Update User Capabilities

  1. Once in the Capabilities Editor for the selected user, look for the capability hmwp_manage_settings.
  2. Check the box next to this capability to enable it for the user.
  3. Click Save to save the changes.
Update Users Capabilities

Hide Menu from Administrator Roles

To ensure WP Ghost is hidden from all users:

  • Go to Users > Roles section and Quick Edit the administrator role.
  • Unselect hmwp_manage_settings capability from the administrator user

  • Save the updates to apply the restrictions.

Test the Changes

  1. Log in as the specific user you assigned the capability to.
  2. Verify that the WP Ghost menu appears in the dashboard.
  3. Log in as another user or use a different account to ensure the menu is hidden for them.

Notes:

  • If you need to revert changes, check the hmwp_manage_settings capability for the user role administrator.
  • To maintain your website’s security, be cautious when granting access to capabilities, especially for sensitive plugins like WP Ghost.

By following these steps, you can ensure that only authorized users have access to configure WP Ghost, enhancing your site’s security and administrative control.