force_ssl_content()
最后更新于:2021-11-26 04:08:28
force_ssl_content( bool$force=”)Whether to force SSL on content.
参数
- $force
-
(bool) (Optional)
Default value: ”
响应
(bool) True if forced, false if not forced.
源文件
文件: gc-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;
}