WP_REST_Request::get_attributes()publicWP 4.4.0

Retrieves the attributes for the request.

These are the options for the route that was matched.

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

Хуков нет.

Возвращает

Массив. Attributes for the request.

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

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

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

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

Код WP_REST_Request::get_attributes() WP 6.5.2

public function get_attributes() {
	return $this->attributes;
}