lostpassword_url filter-hookWP 2.8.0

Filters the Lost Password URL.

Usage

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(string)
The lost password page URL.
$redirect(string)
The path to redirect to on login.

Changelog

Since 2.8.0 Introduced.

Where the hook is called

wp_lostpassword_url()
lostpassword_url
wp-includes/general-template.php 673
return apply_filters( 'lostpassword_url', $lostpassword_url, $redirect );

Where the hook is used in WordPress

Usage not found.