WP_REST_Request::get_url_params(): array
Retrieves parameters from the route itself.
Description
These are parsed from the URL using the regex.
Return
array Parameter map of key to value.
Source
File: wp-includes/rest-api/class-wp-rest-request.php
.
View all references
public function get_url_params() {
return $this->params['URL'];
}
Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |
User Contributed Notes
You must log in before being able to contribute a note or feedback.
Return a custom field with featured the image html and set image size based on URL params: