Product
1 month ago
Async_Request.php
2 years ago
Background_Job.php
2 months ago
Category.php
1 month ago
Connection.php
4 months ago
Email.php
1 year ago
Order.php
1 day ago
Order_Sync.php
10 months ago
Product.php
1 month ago
Products.php
1 day ago
Sync.php
3 years ago
Order_Sync.php
30 lines
| 1 | <?php |
| 2 | /** |
| 3 | * WooCommerce Square - Order Sync Handler |
| 4 | * |
| 5 | * @since 5.0.0 |
| 6 | */ |
| 7 | |
| 8 | namespace WooCommerce\Square\Handlers; |
| 9 | |
| 10 | defined( 'ABSPATH' ) || exit; |
| 11 | |
| 12 | use WooCommerce\Square\Sync\Order_Polling; |
| 13 | |
| 14 | /** |
| 15 | * Handles syncing orders between WooCommerce and Square. |
| 16 | * |
| 17 | * @since 5.0.0 |
| 18 | */ |
| 19 | class Order_Sync { |
| 20 | /** |
| 21 | * Initialize hooks. |
| 22 | * |
| 23 | * @since 5.0.0 |
| 24 | */ |
| 25 | public function init() { |
| 26 | // Initialize order polling system. |
| 27 | new Order_Polling(); |
| 28 | } |
| 29 | } |
| 30 |