| 开发者 | kylephillips |
|---|---|
| 更新时间 | 2015年8月21日 10:14 |
| 捐献地址: | 去捐款 |
| PHP版本: | 3.8 及以上 |
| WordPress版本: | 4.3 |
unit_switcher($value, $primaryunit, $round) in your template to display the switcher. Pass the stored value as the first parameter and primary unit of measurement as the second value.
To display a single switcher, the shortcode [unit_switcher] is available for use. The shortcode requires two parameters: unit (the primary unit being converted) and value (the stored value).
For more information visit unitswitcher.com.
Important: Unit Switcher requires WordPress version 3.8 or higher, and PHP version 5.3.2 or higher.
The plugin is not yet WPML compatible.
Visit Settings > Unit Switcher. A primary unit of measurement is required, along with at least one alternate unit. Substitute the primary unit with X in the formula to equal the alternate formula. So, to set an alternate unit of inches for a primary unit of feet, the formula should be set to X*12.