函数原型
force_ssl_admin( string|bool $force = null ): bool
函数描述
Determines whether to force SSL used for the Administration Screens.
是否弃用
未弃用
函数参数
-
$force
string|bool
Optional - Whether to force SSL in admin screens.
Default:
null
函数返回值
bool True if forced, false if not forced.
函数位置
File: wp-includes/functions.php.
函数源码
function force_ssl_admin( $force = null ) {
static $forced = false;
if ( ! is_null( $force ) ) {
$old_forced = $forced;
$forced = $force;
return $old_forced;
}
return $forced;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.6.0 | Introduced. |

