WordPress at a glance
filter is not described

login_url filter-hook . WP 2.8.0

Filters the login URL.


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

	return $login_url;
The login URL. Not HTML-encoded.
The path to redirect to on login, if supplied.
Whether to force reauthorization, even if a cookie is present.


  • Since 4.2.0 The $force_reauth parameter was added.

Where the hook is called

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.