WpOrg\Requests

Requests::set_certificate_path()public staticWP 1.0

Set default certificate path.

Method of the class: Requests{}

No Hooks.

Return

null. Nothing (null).

Usage

$result = Requests::set_certificate_path( $path );
$path(string|Stringable|true|false) (required)
Certificate path, pointing to a PEM file.

Requests::set_certificate_path() code WP 6.6.2

public static function set_certificate_path($path) {
	if (InputValidator::is_string_or_stringable($path) === false && is_bool($path) === false) {
		throw InvalidArgument::create(1, '$path', 'string|Stringable|bool', gettype($path));
	}

	self::$certificate_path = $path;
}