Requests::set_certificate_path( string|WpOrgRequestsStringable|bool $path )

In this article

Set default certificate path.

Parameters

$pathstring|WpOrgRequestsStringable|boolrequired
Certificate path, pointing to a PEM file.

Source

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;
}

User Contributed Notes

You must log in before being able to contribute a note or feedback.