Retrieves specified options for a route.
(string) (Required) Route pattern to fetch options for.
(array|null) Data as an associative array if found, or null if not found.
File: wp-includes/rest-api/class-wp-rest-server.php
public function get_route_options( $route ) { if ( ! isset( $this->route_options[ $route ] ) ) { return null; } return $this->route_options[ $route ]; }
Version | Description |
---|---|
4.4.0 | Introduced. |
© 2003–2019 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_rest_server/get_route_options