函数原型
force_ssl_content( bool $force = ” ): bool
函数描述
Determines whether to force SSL on content.
是否弃用
未弃用
函数参数
-
$force
bool
Optional Default:
''
函数返回值
bool True if forced, false if not forced.
函数位置
File: wp-includes/ms-functions.php.
函数源码
function force_ssl_content( $force = '' ) {
static $forced_content = false;
if ( ! $force ) {
$old_forced = $forced_content;
$forced_content = $force;
return $old_forced;
}
return $forced_content;
}
源码链接
变更日志
| Version | Description |
|---|---|
| 2.8.5 | Introduced. |

