WC_Admin_Notices::is_ssl()protected staticWC 3.5.1

Determine if the store is running SSL.

Метод класса: WC_Admin_Notices{}

Хуков нет.

Возвращает

true|false. Flag SSL enabled.

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

$result = WC_Admin_Notices::is_ssl();

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

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

Код WC_Admin_Notices::is_ssl() WC 8.7.0

protected static function is_ssl() {
	$shop_page = wc_get_page_permalink( 'shop' );

	return ( is_ssl() && 'https' === substr( $shop_page, 0, 5 ) );
}