Documentation / Tutorials / Awesome Enterprise

Explicitly setting Datatypes in Awesome

/ Awesome Enterprise / Explicitly setting Datatypes in Awesome

Since in WordPress anything in the shortcode is treated as a string value, we have provided the ability to explicitly set datatypes on variables within the Awesome Enterprise shortcodes. This is useful when we are doing data comparison

We support the following four types of datatype

  1. s: – this will cast the value to String
  2. n: – this will cast the value to Float
  3. i: – this will cast the value to Integer
  4. b: – this will cast the value to Bool

 

Categories
Most Popular

Leave a Reply

Your email address will not be published.