| @@ -54,8 +54,11 @@ | ||
| 54 | 54 | * |
| 55 | 55 | * @return array REST API controllers. |
| 56 | 56 | */ |
| 57 | 57 | public static function register_controllers( array $controllers ): array { |
| 58 | + // Reason: Init::hook_rows() retains these registrars here, not at plugins_loaded. | |
| 59 | + // Moving them earlier changes hook visibility and same-priority extension ordering | |
| 60 | + // before woocommerce_pos_rest_api_controllers runs (including unmarked requests). | |
| 58 | 61 | Response_Telemetry::register_hooks(); |
| 59 | 62 | Retry_After_Mirror::register_hooks(); |
| 60 | 63 | Response_Envelope::register_hooks(); |
| 61 | 64 | $controllers['sync-status'] = Status_Controller::class; |