PluginProbe
Gutenberg / trunk
Gutenberg vtrunk
24.1.0 24.0.0 23.9.1 23.9.0 23.8.0 23.7.2 23.7.1 23.7.0 23.6.1 23.6.2 23.6.0 23.5.3 23.5.2 23.5.1 23.5.0 23.4.0 23.3.2 23.3.1 23.3.0 23.2.0 23.2.1 23.2.2 23.1.1 23.1.0 23.0.1 All 404 releases
← All changes | lib/rest-api.php +9 -0 23.3.1 → trunk View file →
@@ -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' );