Hello,
I would like to change the link to login :
I have a special page for that and I don't want the visitors see the "wp-admin" login secret url
Thank you for your help.
Hello,
I would like to change the link to login :
I have a special page for that and I don't want the visitors see the "wp-admin" login secret url
Thank you for your help.
I would also like to know how to connect with Ultimate Member login which is placed at .../login/
For now users if they want to comment something have to login twice, once trough UM and second time trough wordpress...
Thanks in advance...
wpDiscuz uses wp_login_url() (/wp-includes/general-template.php) which uses a filter on its return:
return apply_filters('login_url', $login_url, $redirect);
you might be able to add a filter function to functions.php of your theme, to influence the link; example:
add_filter( 'login_url', 'my_login_linkchanger');
function my_login_linkchanger( $link ) {
/*whatever you need to do with the link*/
return home_url( '/my-custom-login-page/' );
}
More info: http://codex.wordpress.org/Plugin_API/Filter_Reference/login_url
Hello,
I would like to change the link to login :
I have a special page for that and I don't want the visitors see the "wp-admin" login secret url
Thank you for your help.
I would also like to know how to connect with Ultimate Member login which is placed at .../login/
For now users if they want to comment something have to login twice, once trough UM and second time trough wordpress...
Thanks in advance...
UM user login is the same WordPress login and it's the same wpDiscuz login. If user is loggedin from any of login forms he/she don't need login again.
you might be able to add a filter function to functions.php of your theme, to influence the link; example:
add_filter( 'login_url', 'my_login_linkchanger');
function my_login_linkchanger( $link ) {
/*whatever you need to do with the link*/
return home_url( '/my-custom-login-page/' );
}
Thank you very much Tom ! It works perfectly !
you might be able to add a filter function to functions.php of your theme, to influence the link; example:
add_filter( 'login_url', 'my_login_linkchanger');
function my_login_linkchanger( $link ) {
/*whatever you need to do with the link*/
return home_url( '/my-custom-login-page/' );
}Thank you very much Tom ! It works perfectly !
This worked for me as well. Thank you Tom
Problem was for not logged in user. When he press link to log in here it will lead him to WP login instead of UM form
When user is logged in already, there was no issue.
Anyhow, it's working now.
Thanks!