WP_REST_Request::get_method │ public │ WP 4.4.0

Retrieves the HTTP method for the request.

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

Хуков нет.

Возвращает

string. HTTP method.

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

$WP_REST_Request = new WP_REST_Request();
$WP_REST_Request->get_method();

Список изменений

С версии 4.4.0 Введена.

Код WP_REST_Request::get_method() WP 7.1.4

public function get_method() {
	return $this->method;
}