Un motore di ricerca WordPress per sviluppatori e autori di temi



wp_lostpassword_url ›

Da2.8.0
Deprecaton/a
wp_lostpassword_url ( $redirect = '' )
Parametri:
  • (string) $redirect Path to redirect to on login.
    Richiesto: No
    Default: (vuoto)
Ritorna:
  • (string) Lost password URL.
Definito a:
Codex:

Returns the URL that allows the user to retrieve the lost password



Sorgenti

function wp_lostpassword_url( $redirect = '' ) {
	$args = array();
	if ( ! empty( $redirect ) ) {
		$args['redirect_to'] = urlencode( $redirect );
	}

	$lostpassword_url = add_query_arg( $args, network_site_url( 'wp-login.php?action=lostpassword', '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 );
}