apply_filters( 'https_ssl_verify', bool|string $ssl_verify , string $url )
Filters whether SSL should be verified for non-local requests.
Parameters
-
$ssl_verify
bool|string -
Boolean to control whether to verify the SSL connection or path to an SSL certificate.
-
$url
string -
The request URL.
Source
File: wp-includes/class-wp-http.php
.
View all references
$options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'], $url );
Changelog
Version | Description |
---|---|
5.1.0 | The $url parameter was added. |
2.8.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Disabling the SSL verification is a common way to get around the “cURL error 60” issue with wp_remote_get:
Note that this is strongly recommended against for security reasons.