WC_Admin_Addons::is_ssl_error()public staticWC 1.0

Check if the error is due to an SSL error

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

No Hooks.

Return

true|false. True if SSL error, false otherwise

Usage

$result = WC_Admin_Addons::is_ssl_error( $error_message );
$error_message(string) (required)
Error message.

Code of WC_Admin_Addons::is_ssl_error() WC 6.7.0

public static function is_ssl_error( $error_message ) {
	return false !== stripos( $error_message, 'cURL error 35' );
}