Close this search box.

How to change /wp-login.php URL in WordPress

How to change /wp-login.php URL in WordPress

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-login.php URL
// More snippets at 

function custom_login_page() {
    return site_url('/custom-login-url/');
add_filter('login_page_url', 'custom_login_page');

Share this post

You might also like...


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