https_ssl_verify filter-hookWP 2.8.0

Filters whether SSL should be verified for non-local requests.

Usage

add_filter( 'https_ssl_verify', 'wp_kama_https_ssl_verify_filter', 10, 2 );

/**
 * Function for `https_ssl_verify` filter-hook.
 * 
 * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection or path to an SSL certificate.
 * @param string      $url        The request URL.
 *
 * @return bool|string
 */
function wp_kama_https_ssl_verify_filter( $ssl_verify, $url ){

	// filter...
	return $ssl_verify;
}
$ssl_verify(true|false|string)
Boolean to control whether to verify the SSL connection or path to an SSL certificate.
$url(string)
The request URL.

Changelog

Since 2.8.0 Introduced.
Since 5.1.0 The $url parameter was added.

Where the hook is called

WP_Http::request()
https_ssl_verify
WP_Http_Curl::request()
https_ssl_verify
WP_Http_Streams::request()
https_ssl_verify
wp-includes/class-wp-http.php 378
$options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'], $url );
wp-includes/class-wp-http-curl.php 125
$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );
wp-includes/class-wp-http-streams.php 116
$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );

Where the hook is used in WordPress

Usage not found.