is_login()
Determines whether the current request is for the login screen.
Description
See also
Return
(bool) True if inside WordPress login screen, false otherwise.
Source
File: wp-includes/load.php
function is_login() {
return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
}
Changelog
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |