Friends, the login link of WordPress admin page is included in all the websites. So WordPress password attempts can increase. Anyone can try to hack and Bruce Force can also attack to hack your WordPress login page website. So to avoid this we need to bypass. If we bypass the wp login link of our website, then this problem will not end.
You can bypass WordPress login url in two ways. One way is you do a little coding and make a little change in the database. And another way is to bypass it by doing a plugin. So today we are going to talk about such a plugin, from which you can easily change the WordPress login URL. that plugin name is “Change wp-admin login“.
YOU CAN DOWNLOAD THIS PLUGIN FROM HERE
It is very easy to change the login URL with this plugin. Just install the plugin and change the Login URL in the settings. I do not understand, let me tell you how to do it. add snapshot for you. Although login is secure, sometimes we need to do this. When our site became a little famous then there would be a problem of attack.
Do you guys understand? I think you must have understood very well how to do it, so let’s move forward. So let’s now talk about how to change the WordPress login page URL from the code.
How to Change The WordPress Login URL Without Plugin
To change the code, you have to put some code in the WordPress login function PHP file. By entering the code your login page will be changed and your login page will be saved. To do this, you have to follow some steps as I have given below steps.
- Go to appreance
- Theme editor
- fuction php
- Add this code bellow in function php
- save changes
Progressive Web Apps (PWAs): Exploring the Benefits, Development, and Enhanced User Experience
add_filter( 'logout_url', 'custom_logout_url' );
function custom_logout_url( $default ) {
return str_replace( 'wp-login', 'new login page URL', $default );
}
add_action('wp_logout','auto_redirect_after_logout');
function auto_redirect_after_logout(){
wp_safe_redirect( home_url() );
exit;
}
So paste this code into your function PHP file. By doing this your work will be done. Change the new WordPress login page URL according to your need. I think you must have understood, you have not understood or had some doubts and you can ask me. I will try my best to help you.