WP_REST_Server::get_route_options( string $route )
Retrieves specified options for a route.
Description Description
Parameters Parameters
- $route
-
(string) (Required) Route pattern to fetch options for.
Return Return
(array|null) Data as an associative array if found, or null if not found.
Source Source
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 ]; }
Expand full source code Collapse full source code View on Trac
Changelog Changelog
Version | Description |
---|---|
4.4.0 | Introduced. |