This solution ensures that WordPress paths are customized not only on the frontend but also within the admin backend, enhancing security further.

Before changing the paths

  • Changing paths in the admin backend may affect compatibility with plugins or themes that depend on default WordPress paths.
  • Always create a full backup of your site before making these changes.
  • Verify that everything works as expected after enabling this feature.

To change the WordPress paths in the admin dashboard using WP Ghost, follow these steps:

  1. Use an FTP client (like FileZilla) or your web hosting file manager to access your site’s files.
  2. Open the wp-config.php file in the root directory of your WordPress installation.
  1. Insert the following line of code anywhere before the line that says:
/* That's all, stop editing! Happy publishing. */
define('HMW_ALWAYS_CHANGE_PATHS', true);
  1. Save the changes and upload the file back to the server (if using FTP).
  2. Back to Admin Dashboard, go to WP Ghost > Change Paths section.
  3. Click the Save button to apply the changes.

Tagged: