WordPress at Your Fingertips
function is not described

WC_REST_System_Status_V2_Controller::get_security_info() public WC 1.0

Returns security tips.

{} It's a method of the class: WC_REST_System_Status_V2_Controller{}

No Hooks.

Return

Array.

Usage

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

Code of WC_REST_System_Status_V2_Controller::get_security_info() WC 5.9.0

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' ) ),
	);
}