woothemes/woocommerce — pull request #6208 by ragulka (2014-09-10 08:41:36+00:00)
Title: Add `id` attribute to woocommerce_form_field args

This change allows developers to supply their own id attribute when using the `woocommerce_form_field` template function. The default ID is the escaped key, keeping the default behaviour.

An example use-case is where there are multiple forms on a single page and on both forms, there is a field with the same key. While this is all valid, it's invalid to use the same ID for both of these fields. Using the same ID will break labels and locating the correct DOM element using Javascript.