WP_REST_Server::get_route_options PHP Метод

get_route_options() публичный метод

Retrieves specified options for a route.
С версии: 4.4.0
public get_route_options ( string $route ) : array | null
$route string Route pattern to fetch options for.
Результат array | null Data as an associative array if found, or null if not found.
    public function get_route_options($route)
    {
        if (!isset($this->route_options[$route])) {
            return null;
        }
        return $this->route_options[$route];
    }