Close this search box.

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 

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


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