https_local_ssl_verify
Filters whether SSL should be verified for local HTTP API requests.
Usage
add_filter( 'https_local_ssl_verify', 'wp_kama_https_local_ssl_verify_filter', 10, 2 ); /** * Function for `https_local_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_local_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_local_ssl_verify
https_local_ssl_verify
https_local_ssl_verify
https_local_ssl_verify
https_local_ssl_verify
https_local_ssl_verify
https_local_ssl_verify
wp-includes/class-wp-http-streams.php 113
$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
wp-includes/cron.php 943
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
wp-includes/class-wp-http-curl.php 122
$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
wp-admin/includes/class-wp-site-health.php 2145
$sslverify = apply_filters( 'https_local_ssl_verify', false );
wp-admin/includes/class-wp-site-health.php 3121
$sslverify = apply_filters( 'https_local_ssl_verify', false );
wp-admin/includes/class-wp-site-health.php 3372
$sslverify = apply_filters( 'https_local_ssl_verify', false );
wp-admin/includes/class-wp-automatic-updater.php 1759
$sslverify = apply_filters( 'https_local_ssl_verify', false );
wp-admin/includes/file.php 543
$sslverify = apply_filters( 'https_local_ssl_verify', false );