force_ssl_content( bool $force =  ): bool

In this article

Determines whether to force SSL on content.

Parameters

$forcebooloptional

Default:''

Return

bool True if forced, false if not forced.

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

Changelog

VersionDescription
2.8.5Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.