WordPress at a glance
function is not described

url_is_accessable_via_ssl() WP 2.5.0

Deprecated in 4.0.0. It is no longer supported and can be removed in future releases. It is recommended to replace this function with the same one.

Determines if the URL can be accessed over SSL.

Determines if the URL can be accessed over SSL by using the WordPress HTTP API to access the URL using https as the scheme.

No Hooks.

Return

true/false. Whether SSL access is available.

Usage

url_is_accessable_via_ssl( $url );
$url(string) (required)
The URL to test.

Code of url is accessable via ssl: wp-includes/deprecated.php WP 5.2.2

<?php
function url_is_accessable_via_ssl( $url ) {
	_deprecated_function( __FUNCTION__, '4.0.0' );

	$response = wp_remote_get( set_url_scheme( $url, 'https' ) );

	if ( !is_wp_error( $response ) ) {
		$status = wp_remote_retrieve_response_code( $response );
		if ( 200 == $status || 401 == $status ) {
			return true;
		}
	}

	return false;
}