WordPress at a glance
filter is not described

login_url filter-hook . WP 2.8.0

Filters the login URL.

Usage

add_filter( 'login_url', 'filter_function_name_2670', 10, 3 );
function filter_function_name_2670( $login_url, $redirect, $force_reauth ){
	// filter...

	return $login_url;
}
$login_url(string)
The login URL. Not HTML-encoded.
$redirect(string)
The path to redirect to on login, if supplied.
$force_reauth(true/false)
Whether to force reauthorization, even if a cookie is present.

Notes

  • Since 4.2.0 The $force_reauth parameter was added.

Where the hook is called

wp_login_url()
wp-includes/general-template.php 338
return apply_filters( 'login_url', $login_url, $redirect, $force_reauth );

Where the hook is used (in WP core)

Does not used.