On this page
force_ssl_content( bool $force = '' ): bool
Determines whether to force SSL on content.
Parameters
$forcebool Optional-
Default:
''
Return
bool True if forced, false if not forced.
Source
File: wp-includes/ms-functions.php. View all references
function force_ssl_content( $force = '' ) {
static $forced_content = false;
if ( ! $force ) {
$old_forced = $forced_content;
$forced_content = $force;
return $old_forced;
}
return $forced_content;
}
Related
Used By
| Used By | Description |
|---|---|
| filter_SSL() wp-includes/ms-functions.php | Formats a URL to use https. |
Changelog
| Version | Description |
|---|---|
| 2.8.5 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/functions/force_ssl_content