How to change /wp-admin URL in WordPress

WordPress Snippets

Changing the default /wp-admin URL of your WordPress website is a great way to improve the security of your website. You can do this by using the functions.php file in your WordPress theme. To start, you will need to open the theme functions.php file and add the following code:

// Change the wp-admin URL
// More snippets at wpunplugged.com 

function wp_admin_url() { 
return home_url('/new-wp-admin/'); 
}

Once this code is added, you can update the wp-admin URL to whatever you would like. After updating the URL, you will need to logout and then log back in with the new URL in order to access the WordPress dashboard.

Share this post

You might also like...

Sucuri for WordPress Review
Plugins

Sucuri for WordPress Review

Sucuri for WordPress is a powerful security plugin that helps protect your website from hackers and malicious software. It provides a comprehensive website security solution,

Read More »

Comment

Your email address will not be published. Required fields are marked *