Menu Adam R Brown

WP hooks navigation: Home/browseActions indexFilters index

Source View: rest_route_data

To save our bandwidth, we show only a snippet of code around each occurence of the hook. View complete file in SVN (without highlighting).

Understanding Source Code

The best way to understand what a hook does is to look at where it occurs in the source code.

Remember, this hook may occur in more than one file. Moreover, the hook's context may change from version to version.

Source View

Line Code
1123            * This data is exposed on indexes and can be used by clients or
1124            * developers to investigate the site and find out how to use it. It
1125            * acts as a form of self-documentation.
1126            *
1127            * @since 4.4.0
1128            *
1129            * @param array $available Map of route to route data.
1130            * @param array $routes    Internal route data as an associative array.
1131            */
1132           return apply_filters( 'rest_route_data', $available, $routes );
1133      }
1134
1135      /**
1136       * Retrieves publicly-visible data for the route.
1137       *
1138       * @since 4.4.0
1139       *
1140       * @param string $route     Route to get data for.
1141       * @param array  $callbacks Callbacks to convert to data.