WordPress Hooks Explorer

Listing all hooks extracted WordPress Core


Details about rest_route_data

Back to home

Files

Filename Hook Type Line Number PHP Doc
wp-includes/rest-api/class-wp-rest-server.php apply_filters 1455 /**
* Filters the publicly-visible data for REST API routes.
*
* This data is exposed on indexes and can be used by clients or
* developers to investigate the site and find out how to use it. It
* acts as a form of self-documentation.
*
* @since 4.4.0
*
* @param array[] $available Route data to expose in indexes, keyed by route.
* @param array $routes Internal route data as an associative array.
*/

Hook Parameters

Parameter Type Name Description
array[] $available Route data to expose in indexes, keyed by route.
array $routes Internal route data as an associative array.