lostpassword_redirect
Filters the URL redirected to after submitting the lostpassword/retrievepassword form.
Использование
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(строка)
- The redirect destination URL.
Список изменений
С версии 3.0.0 | Введена. |
Где вызывается хук
В файле: /wp-login.php
lostpassword_redirect
wp-login.php 856
$redirect_to = apply_filters( 'lostpassword_redirect', $lostpassword_redirect );