force_ssl_content

函数


force_ssl_content ( $force = '' )
参数
  • (bool)
    $force
    Required:
    Default: (empty)
返回值
  • (bool) True if forced, false if not forced.
定义位置
  • wp-includes/ms-functions.php
    , line 2360
引入
2.8.5
弃用

Determines whether to force SSL on content.

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

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

	return $forced_content;
}