force_ssl_content()
Determines whether to force SSL on content.
Хуков нет.
Возвращает
true|false
. True if forced, false if not forced.
Использование
force_ssl_content( $force );
- $force(true|false)
- -
По умолчанию: ''
Список изменений
С версии 2.8.5 | Введена. |
Код force_ssl_content() force ssl content WP 6.7.2
function force_ssl_content( $force = '' ) { static $forced_content = false; if ( ! $force ) { $old_forced = $forced_content; $forced_content = $force; return $old_forced; } return $forced_content; }