force_ssl_admin()
force_ssl_admin( string|bool $force = null )
是否强制用于管理屏幕的SSL。
Whether to force SSL used for the Administration Screens.
参数(Parameters)
参数 | 类型 | 必填 | 说明 |
---|---|---|---|
$force | (string | bool) | 可选 | 是否在管理屏幕中强制SSL。 |
返回(Return)
(bool)如果强制,则为True;如果不强制,则为false。
源码(Source)
更新版本 | 源码位置 | 使用 | 被使用 |
---|---|---|---|
2.6.0 | wp-includes/functions.php:5331 | 5 | 0 |
笔记(Notes)
默认用法
更改返回值
重置返回值
force_ssl_admin() 为WP2原创文章,链接:https://www.wp2.cn/functions/force_ssl_admin/