Yoast\WP\SEO\Config

Wincher_Client::do_request()protectedYoast 1.0

Performs the specified request.

Метод класса: Wincher_Client{}

Хуков нет.

Возвращает

Разное. The parsed API response.

Использование

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->do_request( $method, $url, $options );
$method(строка) (обязательный)
The HTTP method to use.
$url(строка) (обязательный)
The URL to send the request to.
$options(массив) (обязательный)
The options to pass along to the request.

Код Wincher_Client::do_request() Yoast 22.4

protected function do_request( $method, $url, array $options ) {
	$options['headers'] = [ 'Content-Type' => 'application/json' ];
	return parent::do_request( $method, $url, $options );
}