WordPress at Your Fingertips
function is not described

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{}

No Hooks.


Array. Attributes for the request.


$WP_REST_Request = new WP_REST_Request();

Code of WP_REST_Request::get_attributes() WP 5.8.3

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