public function __construct($priority) { parent::__construct('membership'); add_action('init', array(&$this, 'on_init')); add_action('woocommerce_before_calculate_totals', array(&$this, 'on_calculate_totals'), $priority); }
public function __construct($priority) { parent::__construct('advanced_totals'); add_action('woocommerce_after_cart_item_quantity_update', array(&$this, 'on_update_cart_item_quantity'), $priority, 2); add_action('woocommerce_before_calculate_totals', array(&$this, 'on_calculate_totals'), $priority); }