lostpassword_url
Filters the Lost Password URL.
Использование
add_filter( 'lostpassword_url', 'wp_kama_lostpassword_url_filter', 10, 2 );
/**
* Function for `lostpassword_url` filter-hook.
*
* @param string $lostpassword_url The lost password page URL.
* @param string $redirect The path to redirect to on login.
*
* @return string
*/
function wp_kama_lostpassword_url_filter( $lostpassword_url, $redirect ){
// filter...
return $lostpassword_url;
}
- $lostpassword_url(строка)
- The lost password page URL.
- $redirect(строка)
- The path to redirect to on login.
Список изменений
| С версии 2.8.0 | Введена. |
Где вызывается хук
lostpassword_url
wp-includes/general-template.php 684
return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );