In the newest plugin update, I added a feature to format dates and numbers, as well as an optional module to do calculations.
To format a value like 20160128 into 2016/01/28
[format date=Y/m/d] {DATE} [/format]
To format a value like 1201 into 12:01
[format date=H:i] {TIME} [/format]
To format a number with 2 decimal places
[format decimals=2] {NUMBER} [/format]
To do a calculation, the optional Math module must be enabled in Settings. The result can then be formatted.
[format decimals=2] [calc] {NUMBER} / 100 [/calc] [/format]
- - , .
WordPress ...
ما را در سایت WordPress دنبال می کنید
برچسب : نویسنده : استخدام کار wpss بازدید : 110 تاريخ : سه شنبه 27 بهمن 1394 ساعت: 18:53