Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- if (!defined('REAL_WP_SITE_URL')) {
- define('REAL_WP_SITE_URL', 'https://realwp.net');
- }
- class WP_DIGIKALA_SELLER extends \WPTrait\Plugin
- {
- public $woocommerce;
- public $Product;
- public $Order;
- public $Compatibility;
- public $api;
- public $Admin;
- public function __construct($slug, $args)
- {
- parent::__construct($slug, $args);
- }
- public function includes()
- {
- add_filter('real_wp_products_list', [$this, 'define_product']);
- require_once dirname(__FILE__).'/lib/real-wp/real-wp.php';
- require_once dirname(__FILE__).'/lib/settings-api/settings.php';
- }
- public function instantiate()
- {
- if (false === REAL_WP::isActiveSoftwareLicense($this->plugin->slug)) {
- return;
- }
- $this->api = new \WP_DIGIKALA_SELLER\DIGIKALA_SELLER_API($this->plugin);
- $this->Admin = new \WP_DIGIKALA_SELLER\admin\Admin($this->plugin);
- if (false === wp_digikala_seller()->api->isActiveService()) {
- return;
- }
- $this->woocommerce = new \WP_DIGIKALA_SELLER\wordpress\WooCommerce($this->plugin);
- ......................................................................
- .............................................
- ...................
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement