wpseek.com
Un motore di ricerca WordPress per sviluppatori e autori di temi
wp_lostpassword_url › WordPress Function
Da2.8.0
Deprecaton/a
› wp_lostpassword_url ( $redirect = '' )
| Parametri: |
|
| Ritorna: |
|
| Definito a: |
|
| Codex: |
Returns the URL that allows the user to reset the lost password.
Funzioni correlate: wp_set_password, wp_hash_password, post_password_required, the_post_password, wp_get_password_hint
Sorgenti
function wp_lostpassword_url( $redirect = '' ) {
$args = array(
'action' => 'lostpassword',
);
if ( ! empty( $redirect ) ) {
$args['redirect_to'] = urlencode( $redirect );
}
if ( is_multisite() ) {
$blog_details = get_site();
$wp_login_path = $blog_details->path . 'wp-login.php';
} else {
$wp_login_path = 'wp-login.php';
}
$lostpassword_url = add_query_arg( $args, network_site_url( $wp_login_path, 'login' ) );
/**
* Filters the Lost Password URL.
*
* @since 2.8.0
*
* @param string $lostpassword_url The lost password page URL.
* @param string $redirect The path to redirect to on login.
*/
return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );
}