Kishan
asked 5 years ago

hi
im using 

User Profiles plugins

teast


when you click login, it is redirecting to the login page instead of logging in 
do you have any fix
 

1 Answers
DominicStaff
answered 5 years ago

At the moment, we are using the login form of WordPress, if you want to fix this option, you can custom this link in the action of the login form. 
You can use the following code in the functions.php file to replace the login page URL.

add_filter( 'site_url', 'my_url_modifier', 10, 4 );
function my_url_modifier( $url, $path, $scheme, $blog_id) {
    if($url=='http://mywebsite.com/wp-login.php?action=lostpassword')   
        return 'http://your_link..';
    else 
        return $url;
}
Powered by DW Question & Answer Pro