Can’t alter $lostpassword_url
You want to change the url of the “Lost your password?”-link on the logging screen, right? So to change the url you can use the “lostpassword_url” filter. function change_url ( $url ) { $url=”www.google.de”; return $url; } function change_something() { add_filter( ‘lostpassword_url’, ‘change_url’ ); } add_action ( ‘login_head’, ‘change_something’ );