WP_REST_Request::get_attributes
Retrieves the attributes for the request.
These are the options for the route that was matched.
Method of the class: WP_REST_Request{}
No Hooks.
Returns
Array. Attributes for the request.
Usage
$WP_REST_Request = new WP_REST_Request(); $WP_REST_Request->get_attributes();
Changelog
| Since 4.4.0 | Introduced. |
WP_REST_Request::get_attributes() WP REST Request::get attributes code WP 7.0
public function get_attributes() {
return $this->attributes;
}