is_login(): bool

Determines whether the current request is for the login screen.


Description

Top ↑

See also


Top ↑

Return

bool True if inside WordPress login screen, false otherwise.


Top ↑

Source

File: wp-includes/load.php. View all references

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


Top ↑

Changelog

Changelog
Version Description
6.1.0 Introduced.

Top ↑

User Contributed Notes

You must log in before being able to contribute a note or feedback.