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

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

UpdraftPlus for WordPress Review
Backup

UpdraftPlus for WordPress Review

UpdraftPlus for WordPress is a powerful backup plugin that enables users to easily back up their website’s content, including the WordPress database, themes, plugins, and

Read More »

Comment

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