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

MemberPress Membership login for WordPress Review
Content restriction

MemberPress for WordPress Review

MemberPress for WordPress is a powerful membership plugin that makes it easy to create and manage memberships on any WordPress website. It allows you to

Read More »

Comment

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