Yoast\WP\SEO\Config
OAuth_Client::post
Performs an authenticated POST request to the desired URL.
Метод класса: OAuth_Client{}
Хуков нет.
Возвращает
Разное. The parsed API response.
Использование
$OAuth_Client = new OAuth_Client(); $OAuth_Client->post( $url, $body, $options );
- $url(строка) (обязательный)
- The URL to send the request to.
- $body(разное) (обязательный)
- The data to send along in the request's body.
- $options(массив)
- The options to pass along to the request.
По умолчанию:[]
Код OAuth_Client::post() OAuth Client::post Yoast 26.9
public function post( $url, $body, $options = [] ) {
$options['body'] = $body;
return $this->do_request( 'POST', $url, $options );
}