Documentation / Tutorials / Awesome Enterprise

Structure of an Awesome Shortcode

/ Awesome Enterprise / Structure of an Awesome Shortcode

All awesome shortcodes follow the structure as shown in the image above.

  1. Before the shortcode is executed, the conditional(c.*) is checked, and if it is evaluated to ‘true’ then the shortcode is executed.
  2. After the shortcode has done its work, the output of the shortcode is passed to the modifier(m.*). Modifies can change the output and return the changed value.
  3. Finally, if Output (o.*) is specified then the passed to the output handler and it decides what to do with the output.
Categories
Most Popular

Leave a Reply

Your email address will not be published.