The instance is going to be useful if any 3rd party needs to read any other property of the shipping class, which might not have been passed through the $args variable.
Add a third optional parameter to the weight and dimension normalization
functions in order to be able to specify a specific "from unit" instead
of using the site option. This allows arbitrary conversions between
different units of measure; which is particularly useful for extensions
that need to perform arbitrary unit conversions (e.g. shipping extension
that specifies custom box formats).
Also includes updated tests.
This allows browsers to automatically fill in the appropriate fields
for the checkout process. This should significantly improve the
checkout experience for a lot of users, especially those that
frequently shop online in different shops.
The following fields now have proper autocomplete attributes:
- First name
- Last name
- Company name
- County
- Address line 1 (Street name)
- Address line 2 (Apartment, suite, unit etc.)
- City
- State / Country
- Postcode / ZIP
- Email address
- Phone number
For more information about how autocomplete can improve user
experience: https://developers.google.com/web/updates/2015/06/checkout-faster-with-a
utofill
A complete overview can be found in the WHATWGHTML specification: https://html.spec.whatwg.org/multipage/forms.html#autofill
This makes it possible to add an autocomplete attribute to a variety of
WooCommerce form fields. Making it easier for plugin developers and
core developers to build forms with good autocomplete UX.
More information about the autocomplete attribute and it’s values see:
https://html.spec.whatwg.org/multipage/forms.html#autofill-field