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

WooCommerce for WordPress Review
Ecommerce

WooCommerce for WordPress Review

WooCommerce for WordPress is a great choice for anyone looking to create an online store. Its user-friendly interface makes setup and customization simple, while its

Read More »
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 *