wpseek.com
A WordPress-centric search engine for devs and theme authors



force_ssl_content › WordPress Function

Since2.8.5
Deprecatedn/a
force_ssl_content ( $force = '' )
Parameters:
  • (bool) $force
    Required: No
    Default: (empty)
Returns:
  • (bool) True if forced, false if not forced.
Defined at:
Codex:

Determines whether to force SSL on content.



Source

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

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

	return $forced_content;
}