WordPress at a glance
функция не описана

WP_REST_Request::get_attributes() public WP 4.4.0

Retrieves the attributes for the request.

These are the options for the route that was matched.

It's a method of the class: WP_REST_Request{}

Хуков нет.

Возвращает

Array. Attributes for the request.

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

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

Changelog

Since 4.4.0 Introduced.

Код WP_REST_Request::get_attributes() WP 5.5.1

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