force_ssl_content()WP 2.8.5

Determines whether to force SSL on content.

Хуков нет.

Возвращает

true|false. True if forced, false if not forced.

Использование

force_ssl_content( $force );
$force(true|false|null)
Whether to force SSL in admin screens.
По умолчанию: null

Список изменений

С версии 2.8.5 Введена.

Код force_ssl_content() WP 6.9

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;
}