WPSEO_Remote_Request::post()protectedYoast 1.0

Performs a post request to the specified endpoint with set arguments.

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

Хуков нет.

Возвращает

WP_Error|Массив. The response or WP_Error on failure.

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

// protected - в коде основоного (родительского) или дочернего класса
$result = $this->post();

Код WPSEO_Remote_Request::post() Yoast 22.3

protected function post() {
	return wp_remote_post( $this->endpoint, $this->args );
}