Determines whether the current request is for the login screen.
Description
See also
Source
function is_login() {
return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
}
Changelog
Version | Description |
---|---|
6.1.0 | Introduced. |
Determines whether the current request is for the login screen.
function is_login() {
return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
}
Version | Description |
---|---|
6.1.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.