Core Function
View Source on Trac ↗ wp_login_url()
wp_login_url( mixed $redirect = '', mixed $force_reauth = false ) Retrieves the login URL.
Parameters 1 required
| Name / Type | Description |
|---|---|
| $redirect string | Path to redirect to on log in. |
| bool | $force_reauth Whether to force reauthorization, even if a cookie is present. Default false. Required |
Return Value
(string)
The login URL. Not HTML-encoded.
Function Information
Since Version
2.7.0
Source File
wp-includes/general-template.php
Advertisement