This function has been deprecated.

url_is_accessable_via_ssl( string $url )

Determines if the URL can be accessed over SSL.


Description

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


Parameters

$url

(string) (Required) The URL to test.


Return

(bool) Whether SSL access is available.


Source

File: wp-includes/deprecated.php

function url_is_accessable_via_ssl( $url ) {
	_deprecated_function( __FUNCTION__, 'WP-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;
}


Changelog

Changelog
Version Description
WP-4.0.0 This function has been deprecated.
WP-2.5.0 Introduced. This function has been deprecated.