| @@ -44,4 +44,13 @@ | ||
| 44 | 44 | $icons_controller = new WP_REST_Icons_Controller_Gutenberg(); |
| 45 | 45 | $icons_controller->register_routes(); |
| 46 | 46 | } |
| 47 | 47 | add_action( 'rest_api_init', 'gutenberg_register_icon_controller_endpoints' ); |
| 48 | + | |
| 49 | +/** | |
| 50 | + * Registers the Icon Collections Registry REST API routes. | |
| 51 | + */ | |
| 52 | +function gutenberg_register_icon_collections_controller_endpoints() { | |
| 53 | + $icon_collections_controller = new WP_REST_Icon_Collections_Controller_Gutenberg(); | |
| 54 | + $icon_collections_controller->register_routes(); | |
| 55 | +} | |
| 56 | +add_action( 'rest_api_init', 'gutenberg_register_icon_collections_controller_endpoints' ); | |