WP_REST_Request::get_attributes(): array

In this article

Retrieves the attributes for the request.

Description

These are the options for the route that was matched.

Return

array Attributes for the request.

Source

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

Changelog

VersionDescription
4.4.0Introduced.

User Contributed Notes

You must log in before being able to contribute a note or feedback.