Creating an extension


WOOT actively uses hooks what allows creating additional extensions such like:

Main hooks are:

  • woot_extend_settings
  • woot_extend_settings_default
  • woot_include_assets - this hook includes the extension assets trough functions wp_enqueue_script and wp_enqueue_style
  • each extension should has its unique 'action' to add its columns into the system
  • tables are generated through function 'woot()->draw_table_data($table_data, $table_html_id)'
  • For JavaScript functionality uses events system
  • JS event 'woot-do-after-draw' allows to add active functionality after the products table redrawing

Use extensions above as an examples for creating your own ones. If you have questions write request to support please.