only run lifecycle methods if woocommerce active