PluginProbe
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More / 2.2.0
StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More v2.2.0
2.3.0 2.2.0 2.1.1 2.1.0 2.0.0 1.10.0 1.9.1 1.9.0 1.2.1 1.2.2 1.3.0 1.3.1 1.3.2 1.3.3 1.4.0 1.5.0 1.5.1 1.5.2 1.5.3 1.5.4 1.5.5 1.5.6 1.5.7 1.5.8 1.6.0 All 59 releases
storeengine / addons / csv / csv.php

csv.php in StoreEngine — Complete eCommerce Solution with Memberships, Licensing, Affiliates & More 2.2.0, at addons/csv/csv.php

36 lines 737 B
No matching file
Up and down to move Enter to open Esc to close
Raw Download Zip
1 <?php
2
3 namespace StoreEngine\Addons\Csv;
4
5 use StoreEngine\Addons\Csv\Ajax\Export;
6 use StoreEngine\Addons\Csv\Ajax\Import;
7 use StoreEngine\Addons\Csv\ThirdParty\Rcp;
8 use StoreEngine\Classes\AbstractAddon;
9 use StoreEngine\Traits\Singleton;
10
11 if ( ! defined( 'ABSPATH' ) ) {
12 exit;
13 }
14
15 final class Csv extends AbstractAddon {
16
17 use Singleton;
18
19 protected string $addon_name = 'csv';
20
21 public function define_constants() {
22 define( 'STOREENGINE_CSV_VERSION', '1.0' );
23 define( 'STOREENGINE_CSV_DIR_PATH', STOREENGINE_ADDONS_DIR_PATH . 'csv/' );
24 }
25
26 public function init_addon() {
27 Hooks::init();
28
29 // ajax actions.
30 ( new Export() )->dispatch_actions();
31 ( new Import() )->dispatch_actions();
32 ( new Rcp() )->dispatch_actions();
33 }
34
35 }
36