wppaste
WordPress

apply_filters( 'https_ssl_verify', bool|string $ssl_verify, string $url )

Since
2.8.0, 5.1.0
Filters whether SSL should be verified for non-local requests.

Parameters

$ssl_verifybool|string
Boolean to control whether to verify the SSL connection or path to an SSL certificate.
$urlstring
The request URL.

Fired at · 3

  • wp-includes/class-wp-http-curl.php:125WP_Http_Curl::request()
  • wp-includes/class-wp-http-streams.php:116WP_Http_Streams::request()
  • wp-includes/class-wp-http.php:392WP_Http::request()

Source

		 * @since 5.1.0 The `$url` parameter was added.		 *		 * @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.		 */		$options['verify'] = apply_filters( 'https_ssl_verify', $options['verify'], $url ); 		// Check for proxies.		$proxy = new WP_HTTP_Proxy();		if ( $proxy->is_enabled() && $proxy->send_through_proxy( $url ) ) {			$options['proxy'] = new WpOrg\Requests\Proxy\Http( $proxy->host() . ':' . $proxy->port() );

History

Introduced in 2.8.0. Unchanged from 6.7.7 through 7.1.0.

  1. 6.7.7
  2. 6.8.8
  3. 6.9.7
  4. 7.0.4
  5. 7.1.0

Signature, return type and hooks compared across 5 parsed releases.

5.1.0
The $url parameter was added.from the docblock
2.8.0
Introduced.from the docblock

About this page

Parsed data
Generated from the wordpress-develop 6.7.7 tag, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.
Corrections
Something wrong on this page? Report it and it gets fixed in the next regeneration.