How To

Hide and Show “WP Ghost” in the WordPress Menu

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.

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.

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.

John Darrel

Change Database Prefix in WordPress

Because hackers often use bots to search for security flaws in your website, it is…

1 year

Customize WordPress Uploads Directory

The easiest way to change the default media uploads path is to use the WP…

1 year

WP Ghost and WP Rocket Cache

To hide all CSS and JS you need to follow the steps to Combine the…

1 year

Why is website security important?

https://youtu.be/6ylhojSi-_E In this video, we’ll explore why website security matters and what can happen if…

1 year

Is WordPress Website Easily Hacked?

The security of your WordPress site depends on multiple factors, such as the strength of…

1 year

Setting up Two-Factor Authentication (2FA) for WordPress Using Mobile Apps

When you enable two-factor authentication (2FA) for your WordPress website, it adds an extra layer…

1 year