lostpassword_redirect
Filters the URL redirected to after submitting the lostpassword/retrievepassword form.
Usage
add_filter( 'lostpassword_redirect', 'wp_kama_lostpassword_redirect_filter' ); /** * Function for `lostpassword_redirect` filter-hook. * * @param string $lostpassword_redirect The redirect destination URL. * * @return string */ function wp_kama_lostpassword_redirect_filter( $lostpassword_redirect ){ // filter... return $lostpassword_redirect; }
- $lostpassword_redirect(string)
- The redirect destination URL.
Changelog
Since 3.0.0 | Introduced. |
Where the hook is called
In file: /wp-login.php
lostpassword_redirect
wp-login.php 819
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );