Uma área de pesquisa sobre o WordPress para devs e autores do tema



wp_lostpassword_url ›

Desde2.8.0
Obsoleton/a
wp_lostpassword_url ( $redirect = '' )
Parâmetros:
  • (string) $redirect Path to redirect to on login.
    Required: No
    Padrão: (empty)
Retorna:
  • (string) Lost password URL.
Definido em:
Codex:

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



Fonte

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

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