WpOrg\Requests

Requests::get_default_options()protected staticWP 1.0

Get the default options

Method of the class: Requests{}

No Hooks.

Return

Array. Default option values

Usage

$result = Requests::get_default_options( $multirequest );
$multirequest(true|false)
Is this a multirequest?
Default: false

Notes

  • See: \WpOrg\Requests[Requests::request()](/function/Requests::request) for values returned by this method

Requests::get_default_options() code WP 6.6.2

protected static function get_default_options($multirequest = false) {
	$defaults           = static::OPTION_DEFAULTS;
	$defaults['verify'] = self::$certificate_path;

	if ($multirequest !== false) {
		$defaults['complete'] = null;
	}

	return $defaults;
}