wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:127Retrieves all icon collections.
$requestWP_REST_RequestWP_REST_Response|WP_Error public function get_items( $request ) { $response = array(); $collections = WP_Icon_Collections_Registry::get_instance()->get_all_registered(); foreach ( $collections as $collection ) { $prepared_collection = $this->prepare_item_for_response( $collection, $request ); $response[] = $this->prepare_response_for_collection( $prepared_collection ); } return rest_ensure_response( $response ); }Introduced in 7.1.0.
Signature, return type and hooks compared across 1 parsed release.
src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php, and regenerated for each WordPress release so it tracks the code rather than a snapshot of it.