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...

WP Rocket for WordPress Review
Cache

WP Rocket for WordPress Review

WP Rocket is a popular WordPress plugin that offers comprehensive caching and optimization solutions for WordPress websites. It is designed to help improve website performance,

Read More »

Comment

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