WordPress как на ладони
wordpress jino
фильтр не описан

rest_endpoints_description хук-фильтр . WP 4.4.0

Filters the REST endpoint data.

Использование

add_filter( 'rest_endpoints_description', 'filter_function_name_1609' );
function filter_function_name_1609( $data ){
	// filter...

	return $data;
}
$request(WP_REST_Request)
Request data. The namespace is passed as the 'namespace' parameter.

Связи хука

Используется в: WP_REST_Server::get_data_for_routes()

Остальные хуки из: WP_REST_Server::get_data_for_routes():

Кусок кода с хуком

Фрагмент из: wp-includes/rest-api/class-wp-rest-server.php WP 4.9
...

		// Find the available routes.
		foreach ( $routes as $route => $callbacks ) {
			$data = $this->get_data_for_route( $route, $callbacks, $context );
			if ( empty( $data ) ) {
				continue;
			}

			/**
			 * Filters the REST endpoint data.
			 *
			 * @since 4.4.0
			 *
			 * @param WP_REST_Request $request Request data. The namespace is passed as the 'namespace' parameter.
			 */
			$available[ $route ] = apply_filters( 'rest_endpoints_description', $data );
		}

		/**
		 * Filters the publicly-visible data for 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 Map of route to route data.
		 * @param array $routes    Internal route data as an associative array.
		 */
		return apply_filters( 'rest_route_data', $available, $routes );
...