函数原型
is_login(): bool
函数描述
Determines whether the current request is for the login screen.
是否弃用
未弃用
函数参数
无
函数返回值
bool True if inside WordPress login screen, false otherwise.
函数位置
File: wp-includes/load.php.
函数源码
function is_login() {
return false !== stripos( wp_login_url(), $_SERVER['SCRIPT_NAME'] );
}
源码链接
变更日志
| Version | Description |
|---|---|
| 6.1.0 | Introduced. |

