Requests::set_certificate_path() WordPress Method

The Requests::set_certificate_path() method is used to set the path to the SSL certificate. This is useful if you need to use a self-signed certificate or a certificate that is not in the standard path.

Requests::set_certificate_path( string $path ) #

Set default certificate path.


Parameters

$path

(string)(Required)Certificate path, pointing to a PEM file.


Top ↑

Source

File: wp-includes/class-requests.php

	public static function set_certificate_path($path) {
		self::$certificate_path = $path;
	}

The content displayed on this page has been created in part by processing WordPress source code files which are made available under the GPLv2 (or a later version) license by theĀ Free Software Foundation. In addition to this, the content includes user-written examples and information. All material is subject to review and curation by the WPPaste.com community.