woothemes/woocommerce — pull request #999 by GeertDD (2012-05-04 10:25:29+00:00)
Title: Better shipping class lookup for products

The current `get_shipping_class()` method doesn't cut it.

1. It only returns a single shipping class (the first one), while you can set multiple shipping classes in the admin.
2. It only returns the slug. What if I need the term ID? Looking up the term by slug again is wasteful.

I created a new `get_shipping_classes()` method which solves both issues. It returns an array containing _all_ shipping classes as term _objects_.