Notifications
Clear all

[Solved] How change the redirect of 'please login to comment' in the login page of 'ultimate member' plugin?

2 Posts
1 Users
1 Reactions
1,377 Views
(@lubberkin)
New Member
Joined: 5 years ago
Posts: 2
Topic starter  

Can anyone tell me how I can change the redirect when one clicks on the word 'login' in the phrase "Please Login to comment" below the articles, by configuring it with the 'ultimate member' login page?

Now the redirect is it configured to refer the user to the wp-login.php page.

thank you

 


   
Quote
(@lubberkin)
New Member
Joined: 5 years ago
Posts: 2
Topic starter  

Solved, i have found this code on the forum::

add_filter( 'login_url', 'my_login_linkchanger');
function my_login_linkchanger( $link ) {
/*whatever you need to do with the link*/
return home_url( '/url-login-page' );
}

Thanks!


   
Elvina reacted
ReplyQuote
Share:
Scroll to top