wppaste
WordPress

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

Since
2.8.0, 5.1.0
Filters whether SSL should be verified for local HTTP API 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 · 8

  • wp-admin/includes/class-wp-automatic-updater.php:1789WP_Automatic_Updater::has_fatal_error()
  • wp-admin/includes/class-wp-site-health.php:2169WP_Site_Health::get_test_rest_availability()
  • wp-admin/includes/class-wp-site-health.php:3192WP_Site_Health::can_perform_loopback()
  • wp-admin/includes/class-wp-site-health.php:3443WP_Site_Health::check_for_page_caching()
  • wp-admin/includes/file.php:543wp_edit_theme_plugin_file()
  • wp-includes/class-wp-http-curl.php:122WP_Http_Curl::request()
  • wp-includes/class-wp-http-streams.php:113WP_Http_Streams::request()
  • wp-includes/cron.php:963spawn_cron()

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.			 */			$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );		} elseif ( ! $is_local ) {			/** This filter is documented in wp-includes/class-wp-http.php */			$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );		} 		$proxy = new WP_HTTP_Proxy();

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.9.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.