wp-includes/rest-api/endpoints/class-wp-rest-icon-collections-controller.php:163Retrieves a specific icon collection from the registry.
$slugstringarray|WP_Error public function get_icon_collection( $slug ) { $registry = WP_Icon_Collections_Registry::get_instance(); $collection = $registry->get_registered( $slug ); if ( null === $collection ) { return new WP_Error( 'rest_icon_collection_not_found', sprintf( /* translators: %s: Icon collection slug. */ __( 'Icon collection not found: "%s".' ), $slug ), array( 'status' => 404 ) ); } return $collection; }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.