Filter hook 'https_local_ssl_verify'

in WP Core File wp-includes/class-wp-http-streams.php at line 113

View Source

https_local_ssl_verify

Filter Hook
Description
Filters whether SSL should be verified for local HTTP API requests.

Hook Information

File Location wp-includes/class-wp-http-streams.php View on GitHub
Hook Type Filter
Line Number 113

Hook Parameters

Type Name Description
bool|string $ssl_verify Boolean to control whether to verify the SSL connection or path to an SSL certificate.
string $url The request URL.

Usage Examples

Basic Usage
<?php
// Hook into https_local_ssl_verify
add_filter('https_local_ssl_verify', 'my_custom_filter', 10, 2);

function my_custom_filter($ssl_verify, $url) {
    // Your custom filtering logic here
    return $ssl_verify;
}

Source Code Context

wp-includes/class-wp-http-streams.php:113 - How this hook is used in WordPress core
<?php
 108  			 *
 109  			 * @param bool|string $ssl_verify Boolean to control whether to verify the SSL connection
 110  			 *                                or path to an SSL certificate.
 111  			 * @param string      $url        The request URL.
 112  			 */
 113  			$ssl_verify = apply_filters( 'https_local_ssl_verify', $ssl_verify, $url );
 114  		} elseif ( ! $is_local ) {
 115  			/** This filter is documented in wp-includes/class-wp-http.php */
 116  			$ssl_verify = apply_filters( 'https_ssl_verify', $ssl_verify, $url );
 117  		}
 118  

PHP Documentation

<?php
/**
			 * Filters whether SSL should be verified for local HTTP API requests.
			 *
			 * @since 2.8.0
			 * @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.
			 */
Quick Info
  • Hook Type: Filter
  • Parameters: 2
  • File: wp-includes/class-wp-http-streams.php
Related Hooks

Related hooks will be displayed here in future updates.