https_local_ssl_verify filter-hookWP 2.8.0

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   $ssl_verify Whether to verify the SSL connection.
 * @param string $url        The request URL.
 *
 * @return bool
 */
function wp_kama_https_local_ssl_verify_filter( $ssl_verify, $url ){

	// filter...
	return $ssl_verify;
}
$ssl_verify(true|false)
Whether to verify the SSL connection.
Default: true
$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

WP_Http_Streams::request()
https_local_ssl_verify
WP_Http_Curl::request()
https_local_ssl_verify
spawn_cron()
https_local_ssl_verify
WP_Site_Health::get_test_rest_availability()
https_local_ssl_verify
WP_Site_Health::can_perform_loopback()
https_local_ssl_verify
wp_edit_theme_plugin_file()
https_local_ssl_verify
wp-includes/class-wp-http-streams.php 106
$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
wp-includes/class-wp-http-curl.php 116
$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
wp-includes/cron.php 926
'sslverify' => apply_filters( 'https_local_ssl_verify', false ),
wp-admin/includes/class-wp-site-health.php 2039
$sslverify = apply_filters( 'https_local_ssl_verify', false );
wp-admin/includes/class-wp-site-health.php 2668
$sslverify = apply_filters( 'https_local_ssl_verify', false );
wp-admin/includes/file.php 534
$sslverify = apply_filters( 'https_local_ssl_verify', false );

Where the hook is used in WordPress

Usage not found.