| @@ -41,12 +41,18 @@ | ||
| 41 | 41 | $this->apiRouter = $apiRouter; |
| 42 | 42 | $this->wpAdapter = $wpAdapter; |
| 43 | 43 | } |
| 44 | 44 | |
| 45 | + /** | |
| 46 | + * Registers order modal. | |
| 47 | + */ | |
| 45 | 48 | public function register(): void { |
| 46 | 49 | add_action( 'admin_head', [ $this, 'renderTemplate' ] ); |
| 47 | 50 | } |
| 48 | 51 | |
| 52 | + /** | |
| 53 | + * Renders template. | |
| 54 | + */ | |
| 49 | 55 | public function renderTemplate(): void { |
| 50 | 56 | $nonce = wp_create_nonce( 'wp_rest' ); |
| 51 | 57 | $orderSaveUrl = $this->apiRouter->getSaveModalUrl(); |
| 52 | 58 | |