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

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 *