BuddyDev

Search

[Resolved] Change link address of forgot password on user edit page

  • Participant
    Level: Initiated
    Posts: 4
    Kevin on #53809

    I am using my own plugin for registering people to buddypress. So the link “forgot password” at the profil edit page (see image) is wrong. How can I change the URL in this link without beeing overwritten on next bp update?

    https://postimg.cc/WFMx6CJs

    Thanks for help in advance!!

  • Participant
    Level: Initiated
    Posts: 4
    Kevin on #53810

    I did a little code research on this and found out that bp using the wp_lostpassword_url() function to set the url.

    I tried this code in functions.php to change the URL but this does not work:

    
    function passurl_wpse_208054($lostpassword_url, $redirect ) {
    	return 'http://path/to/login/url';
      }
      add_filter('lostpassword_url', 'passurl_wpse_208054', 10, 2);
    
  • Keymaster
    (BuddyDev Team)
    Posts: 24697
    Brajesh Singh on #53891

    Hi Kevin,
    Thank you for the reply.
    I am glad you found the solution.

    Regards
    Brajesh

The topic ‘ [Resolved] Change link address of forgot password on user edit page’ is closed to new replies.

This topic is: resolved