AI Assistant
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
2,323 Views
(@lubberkin)
New Member
Joined: 6 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
  [#5315]

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: 6 years ago
Posts: 2
Topic starter
Translate
English
Spanish
French
German
Italian
Portuguese
Russian
Chinese
Japanese
Korean
Arabic
Hindi
Dutch
Polish
Turkish
Vietnamese
Thai
Swedish
Danish
Finnish
Norwegian
Czech
Hungarian
Romanian
Greek
Hebrew
Indonesian
Malay
Ukrainian
Bulgarian
Croatian
Slovak
Slovenian
Serbian
Lithuanian
Latvian
Estonian
 

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