register_routes(); } add_action( 'rest_api_init', 'gutenberg_register_global_styles_endpoints' ); if ( ! function_exists( 'gutenberg_register_edit_site_export_controller_endpoints' ) ) { /** * Registers the Edit Site Export REST API routes. */ function gutenberg_register_edit_site_export_controller_endpoints() { $edit_site_export_controller = new WP_REST_Edit_Site_Export_Controller_Gutenberg(); $edit_site_export_controller->register_routes(); } } add_action( 'rest_api_init', 'gutenberg_register_edit_site_export_controller_endpoints' );