Title: wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php | Developer.WordPress.org

---

# File: wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php

 * method[WP_REST_Icon_Collections_Controller::get_items_permissions_check()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_items_permissions_check/)
 * Checks whether a given request has permission to read icon collections.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_items_permissions_check/#used-by)
   | Uses [5 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_items_permissions_check/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:81](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L81-L100)
 * method[WP_REST_Icon_Collections_Controller::get_item_permissions_check()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item_permissions_check/)
 * Checks if a given request has access to read a specific icon collection.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item_permissions_check/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item_permissions_check/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:110](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L110-L117)
 * method[WP_REST_Icon_Collections_Controller::get_items()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_items/)
 * Retrieves all icon collections.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_items/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_items/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:127](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L127-L135)
 * method[WP_REST_Icon_Collections_Controller::get_item()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item/)
 * Retrieves a specific icon collection.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item/#used-by)
   | Uses [4 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:145](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L145-L153)
 * method[WP_REST_Icon_Collections_Controller::get_icon_collection()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_icon_collection/)
 * Retrieves a specific icon collection from the registry.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_icon_collection/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_icon_collection/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:163](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L163-L180)
 * method[WP_REST_Icon_Collections_Controller::prepare_item_for_response()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/prepare_item_for_response/)
 * Prepares a raw icon collection before it gets output in a REST API response.
 * Used by [2 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/prepare_item_for_response/#used-by)
   | Uses [2 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/prepare_item_for_response/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:191](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L191-L209)
 * method[WP_REST_Icon_Collections_Controller::get_item_schema()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item_schema/)
 * Retrieves the icon collection schema, conforming to JSON Schema.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item_schema/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_item_schema/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:218](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L218-L252)
 * method[WP_REST_Icon_Collections_Controller::get_collection_params()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_collection_params/)
 * Retrieves the query params for the icon collections collection.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_collection_params/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/get_collection_params/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:261](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L261-L265)
 * class[WP_REST_Icon_Collections_Controller](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/)
 * Controller which provides a REST endpoint for the editor to read registered icon
   collections.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/#used-by)
   | Uses [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:18](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L18-L266)
 * method[WP_REST_Icon_Collections_Controller::__construct()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/__construct/)
 * Constructs the controller.
 * Used by [1 function](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/__construct/#used-by)
   | Uses [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/__construct/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:25](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L25-L28)
 * method[WP_REST_Icon_Collections_Controller::register_routes()](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/register_routes/)
 * Registers the routes for the objects of the controller.
 * Used by [0 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/register_routes/#used-by)
   | Uses [3 functions](https://developer.wordpress.org/reference/classes/wp_rest_icon_collections_controller/register_routes/#uses)
   | Source: [wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:35](https://github.com/WordPress/wordpress-develop/blob/7.1/src/wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php#L35-L71)