wpseek.com
A WordPress-centric search engine for devs and theme authors



is_login › WordPress Function

Since6.1.0
Deprecatedn/a
is_login ( No parameters )
See:
Returns:
  • (bool) True if inside WordPress login screen, false otherwise.
Defined at:
Codex:

Determines whether the current request is for the login screen.



Source

function is_login() {
	return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
}