Hide wp-admin and wp-login.php from Source Code
June 8, 2022
Hiding the wp-admin and wp-login.php paths from source code it’s important especially when you use obscurity through security solution like Hide My WP Ghost.
The fastest way to change it is to use the mapping feature from Hide My WP Ghost. This way you can change the /wp-admin to a random name which will redirect the user to a page or a 404 page.
For example you can add in Hide My WP > Mapping > Text Mapping:
/wp-admin => /404 /wp-login.php => /404 /wp-login/ => /404
Another solution is to deactivate the installed plugins and to check which plugin is adding the admin and login paths in source code. You can contact the plugin author and tell them to avoid making visible the sensitive paths.