WC_REST_System_Status_V2_Controller::get_security_info
Returns security tips.
Метод класса: WC_REST_System_Status_V2_Controller{}
Хуков нет.
Возвращает
array.
Использование
$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 WC 11.1.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' ) ),
);
}