WC_REST_System_Status_V2_Controller::get_security_info
Returns security tips.
Method of the class: WC_REST_System_Status_V2_Controller{}
No Hooks.
Returns
Array.
Usage
$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 REST System Status V2 Controller::get security info code WC 10.3.6
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' ) ),
);
}