/** * Constructor. */ public function __construct($instance_id = 0) { require_once 'Wootan_Plugin.php'; if (WOOTAN_DEBUG) { error_log('wootan debugging enabled'); } $this->tree = Lasercommerce_Tier_Tree::instance(); $this->wootan = Wootan_Plugin::instance(); $this->id = 'TechnoTan_Shipping'; $this->instance_id = absint($instance_id); $this->method_title = __('TechnoTan Shipping'); $this->title = __('TechnoTan Shipping'); $this->method_description = __("Send by TechnoTan's road or air shipping otions"); $this->supports = array('shipping-zones', 'instance-settings', 'instance-settings-modal', 'settings'); $this->init(); add_action('woocommerce_update_options_shipping_' . $this->id, array($this, 'process_admin_options')); }
public static function init() { if (self::$instance == null) { self::$instance = new Wootan_Plugin(); } }