wpseek.com
WordPress开发者和主题制作者的搜索引擎



force_ssl_content › WordPress Function

Since2.8.5
已弃用n/a
› force_ssl_content ( $force = null )
参数:
  • (bool|null) $force Optional. Whether to force SSL in admin screens. Default null.
    Required: No
    默认: null
返回:
  • (bool) True if forced, false if not forced.
定义在:
文档:

Determines whether to force SSL on content.



源码

function force_ssl_content( $force = null ) {
	static $forced_content = false;

	if ( ! is_null( $force ) ) {
		$old_forced     = $forced_content;
		$forced_content = (bool) $force;
		return $old_forced;
	}

	return $forced_content;
}