Integrations
6 years ago
Products
6 years ago
Utilities
6 years ago
test
6 years ago
AJAX.php
6 years ago
Admin.php
6 years ago
Lifecycle.php
6 years ago
Products.php
6 years ago
fbasync.php
6 years ago
fbbackground.php
6 years ago
fbgraph.php
6 years ago
fbinfobanner.php
6 years ago
fbproduct.php
6 years ago
fbproductfeed.php
6 years ago
fbutils.php
6 years ago
fbwpml.php
6 years ago
fbasync.php
42 lines
| 1 | <?php |
| 2 | /** |
| 3 | * Copyright (c) Facebook, Inc. and its affiliates. All Rights Reserved |
| 4 | * |
| 5 | * This source code is licensed under the license found in the |
| 6 | * LICENSE file in the root directory of this source tree. |
| 7 | * |
| 8 | * @package FacebookCommerce |
| 9 | */ |
| 10 | |
| 11 | if ( ! defined( 'ABSPATH' ) ) { |
| 12 | exit; |
| 13 | } |
| 14 | |
| 15 | if ( ! class_exists( 'WP_Async_Request', false ) ) { |
| 16 | // Do not attempt to create this class without WP_Async_Request |
| 17 | return; |
| 18 | } |
| 19 | |
| 20 | if ( ! class_exists( 'WC_Facebookcommerce_Async_Request' ) ) : |
| 21 | |
| 22 | /** |
| 23 | * FB Graph API async request |
| 24 | */ |
| 25 | class WC_Facebookcommerce_Async_Request extends WP_Async_Request { |
| 26 | |
| 27 | protected $action = 'wc_facebook_async_request'; |
| 28 | |
| 29 | /** |
| 30 | * Handle |
| 31 | * |
| 32 | * Override this method to perform any actions required |
| 33 | * during the async request. |
| 34 | */ |
| 35 | protected function handle() { |
| 36 | // Actions to perform |
| 37 | } |
| 38 | |
| 39 | } |
| 40 | |
| 41 | endif; |
| 42 |