public function cancel_order($note = '') { wc_deprecated_function('cancel_order', '2.7', 'update_status'); WC()->session->set('order_awaiting_payment', false); $this->update_status('cancelled', $note); }