https_ssl_verify

https_ssl_verify

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter
See hook in action

See hook in core

Displaying hooks found in version: wordpress-6.7.2

apply_filters('https_ssl_verify') is found 3 times:

  • /wp-includes/class-wp-http-curl.php line 125
    121
    122
    123
    124
    125
    126
    127
    128
    129
    130
    131
        /** This filter is documented in wp-includes/class-wp-http-streams.php */
        $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 );
    }
     
    /*
     * CURLOPT_TIMEOUT and CURLOPT_CONNECTTIMEOUT expect integers. Have to use ceil since.
     * a value of 0 will allow an unlimited timeout.
     */
  • /wp-includes/class-wp-http-streams.php line 116
    112
    113
    114
    115
    116
    117
    118
    119
    120
    121
    122
         */
        $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();
     
    $context = stream_context_create(
        array(
  • /wp-includes/class-wp-http.php line 392
    388
    389
    390
    391
    392
    393
    394
    395
    396
    397
    * @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() );

See this hook used in plugins: