Handle changed Woocommerce function

It turns out to override the default functionality add_action is the correct method. I added the required attribute part of the get_item_data(), which I needed, before I did my additions and this did the trick.