function __construct() { parent::__construct(false); add_action('woocommerce_product_options_attributes', array($this, 'addSelectBox')); require_once $this->dir . '/includes/class-wc-attribute-sets-db.php'; $this->db = new WCAttributeSetsDb(); }
function __construct() { parent::__construct(false); // Ajax add_action('wp_ajax_wc_attribute_sets_create_set', array($this, 'createSet')); // creating a new set add_action('wp_ajax_nopriv_wc_attribute_sets_create_set', array($this, 'createSet')); // wc_attribute_sets_get_set add_action('wp_ajax_wc_attribute_sets_get_set', array($this, 'getSet')); // creating a new set add_action('wp_ajax_nopriv_wc_attribute_sets_get_set', array($this, 'getSet')); add_action('wp_ajax_wc_attribute_sets_update_set', array($this, 'updateSet')); // creating a new set add_action('wp_ajax_nopriv_wc_attribute_sets_update_set', array($this, 'updateSet')); // WooCommerce actual integration add_action('wp_ajax_wc_attribute_sets_add_to_product', array($this, 'addAttributeSetToProduct')); add_action('wp_ajax_nopriv_wc_attribute_sets_add_to_product', array($this, 'addAttributeSetToProduct')); add_action('wp_ajax_wc_attribute_sets_get_all_sets', array($this, 'getAllSets')); // get all sets require_once $this->dir . '/includes/class-wc-attribute-sets-db.php'; $this->db = new WCAttributeSetsDb(); }
function __construct() { parent::__construct(false); }
function __construct() { parent::__construct(false); $this->prefix = 'wc_attribute_set_'; }