WPSEO_MyYoast_Api_Request::get_request_body()publicYoast 1.0

Retrieves the request body based on URL or access token support.

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

Хуков нет.

Возвращает

Массив. The request body.

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

$WPSEO_MyYoast_Api_Request = new WPSEO_MyYoast_Api_Request();
$WPSEO_MyYoast_Api_Request->get_request_body();

Код WPSEO_MyYoast_Api_Request::get_request_body() Yoast 22.4

public function get_request_body() {
	return [ 'url' => WPSEO_Utils::get_home_url() ];
}