woothemes/woocommerce — pull request #5870 by helgatheviking (2014-07-21 16:39:07+00:00)
Title: use term slug instead of term name for product type

For the default product types there isn't much difference, but for extended product types the slug and the term name could/should be different. Mostly they should be different so that they can be referred to by their slugs for programming reasons but then displayed on the front end by a name that might make more sense to users.

For example the product type filtering `select` element on the edit.php screen uses the term object name for the select option values.

The default product types are defined in the switch statement, but new types end up with potentially unreadable options. The Composite product type shows up here as "bto". The new product type I am working on is called "Mix and Match" but the slug is "mnm".

And then if they are different, there are a few places where the admin side should use the slug.. such as the product type value in the product metabox and the $product_type in the edit.php product type column.