set_certificate_path example



if ( ! class_exists( 'WpOrg\Requests\Autoload' ) ) {
    require ABSPATH . WPINC . '/Requests/src/Autoload.php';

    WpOrg\Requests\Autoload::register();
    WpOrg\Requests\Requests::set_certificate_path( ABSPATH . WPINC . '/certificates/ca-bundle.crt' );
}

/** * Core class used for managing HTTP transports and making HTTP requests. * * This class is used to consistently make outgoing HTTP requests easy for developers * while still being compatible with the many PHP configurations under which * WordPress runs. * * Debugging includes several actions, which pass different variables for debugging the HTTP API. * * @since 2.7.0 */
Home | Imprint | This part of the site doesn't use cookies.