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:
- Use an FTP client (like FileZilla) or your web hosting file manager to access your site’s files.
- Open the
wp-config.php
file in the root directory of your WordPress installation.
- 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);
- Save the changes and upload the file back to the server (if using FTP).
- Back to Admin Dashboard, go to WP Ghost > Change Paths section.
- Click the Save button to apply the changes.