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

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 *