Retrieves the attributes for the request.
Description
These are the options for the route that was matched.
Source
public function get_attributes() {
return $this->attributes;
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
CARVIEW |
Retrieves the attributes for the request.
These are the options for the route that was matched.
public function get_attributes() {
return $this->attributes;
}
Used by | Description |
---|---|
WP_REST_Request::sanitize_params()wp-includes/rest-api/class-wp-rest-request.php | Sanitizes (where possible) the params on the request. |
WP_REST_Request::has_valid_params()wp-includes/rest-api/class-wp-rest-request.php | Checks whether this request is valid according to its attributes. |
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.