W3cubDocs

/WordPress

apply_filters( 'login_url', string $login_url, string $redirect, bool $force_reauth )

Filters the login URL.

Description

Parameters

$login_url

(string) The login URL. Not HTML-encoded.

$redirect

(string) The path to redirect to on login, if supplied.

$force_reauth

(bool) Whether to force reauthorization, even if a cookie is present.

Source

File: wp-includes/general-template.php

View on Trac

Changelog

Version Description
4.2.0 The $force_reauth parameter was added.
2.8.0 Introduced.

© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/hooks/login_url