WordPress как на ладони
Недорогой хостинг для сайтов на WordPress: wordpress.jino.ru
функция не описана

WP_Site_Health::get_test_ssl_support() public WP 5.2.0

Check if the HTTP API can handle SSL/TLS requests.

Это метод класса: WP_Site_Health{}

Хуков нет.

Возвращает

Массив. The test results.

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

$WP_Site_Health = new WP_Site_Health();
$WP_Site_Health->get_test_ssl_support();

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

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

Код WP_Site_Health::get_test_ssl_support() WP 5.5.1

wp-admin/includes/class-wp-site-health.php
<?php
public function get_test_ssl_support() {
	$result = array(
		'label'       => '',
		'status'      => '',
		'badge'       => array(
			'label' => __( 'Security' ),
			'color' => 'blue',
		),
		'description' => sprintf(
			'<p>%s</p>',
			__( 'Securely communicating between servers are needed for transactions such as fetching files, conducting sales on store sites, and much more.' )
		),
		'actions'     => '',
		'test'        => 'ssl_support',
	);

	$supports_https = wp_http_supports( array( 'ssl' ) );

	if ( $supports_https ) {
		$result['status'] = 'good';

		$result['label'] = __( 'Your site can communicate securely with other services' );
	} else {
		$result['status'] = 'critical';

		$result['label'] = __( 'Your site is unable to communicate securely with other services' );

		$result['description'] .= sprintf(
			'<p>%s</p>',
			__( 'Talk to your web host about OpenSSL support for PHP.' )
		);
	}

	return $result;
}