/
Developers -- How to add new units into the WPL?

Developers -- How to add new units into the WPL?

WPL units saved in [wp_prefix]_wpl_units table. If you want to add a new unit into the WPL, you should add a new record in this table. Please fill the below columns based on instructions:

id: Add a high id into this field. 10001 and higher are good values for the id column.

type: Insert 1 for length unit, 2 for area unit, 3 for valume unit, and 4 for currency units.

tosi: Insert exchange rate of the new unit to SI unit. For currencies, SI unit is USD. For other units, m, m², and m³ are SI units.

After adding a new unit, it will appear in WPL->Data Structure->Unit manager and you can enable/disable it or make it the default unit by sorting it to the top.