https_ssl_verify
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
https_ssl_verify
https_ssl_verify
wp-includes/class-wp-http.php 379
$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 );