If you’ve ever gotten down to business with WooCommerce, you’ll know how flexible that beast can get. Of course, the flip side to that is how gnarly things can get in there as well but I guess that’s the double-edged sword we live with when building complicated things out of WordPress.
One little handy point of extension is the ability to customise the available order actions when editing an order. If you’re not entirely sure what I’m talking about, here’s a screenshot:
This ships with a bunch of order actions by default and they’re all relatively handy but it’s not uncommon for me to come up against situations where I don’t need them all there.
It’s a really simple little snippet as you can see below. The filter receives an associative array of action/title pairs so you can unset them as per this example or you could even rename them if you want to.