| 1 |
<?php |
| 2 |
|
| 3 |
namespace SyncBasalam\Registrar; |
| 4 |
|
| 5 |
use SyncBasalam\Endpoints\EndpointRegistrar; |
| 6 |
use SyncBasalam\Registrar\Contracts\RegistrarInterface; |
| 7 |
|
| 8 |
defined('ABSPATH') || exit; |
| 9 |
|
| 10 |
class OrderRegistrar implements RegistrarInterface |
| 11 |
{ |
| 12 |
public static function register(): void |
| 13 |
{ |
| 14 |
// REST API Endpoints |
| 15 |
\add_action('rest_api_init', [EndpointRegistrar::class, 'registerRoutes']); |
| 16 |
} |
| 17 |
} |
| 18 |
|