WC_REST_System_Status_V2_Controller::get_security_info()publicWC 1.0

Returns security tips.

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

Хуков нет.

Возвращает

Массив.

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

$WC_REST_System_Status_V2_Controller = new WC_REST_System_Status_V2_Controller();
$WC_REST_System_Status_V2_Controller->get_security_info();

Код WC_REST_System_Status_V2_Controller::get_security_info() WC 9.4.2

public function get_security_info() {
	$check_page = wc_get_page_permalink( 'shop' );
	return array(
		'secure_connection' => 'https' === substr( $check_page, 0, 5 ),
		'hide_errors'       => ! ( defined( 'WP_DEBUG' ) && defined( 'WP_DEBUG_DISPLAY' ) && WP_DEBUG && WP_DEBUG_DISPLAY ) || 0 === intval( ini_get( 'display_errors' ) ),
	);
}