Torro Forms // Action Hooks

We have added a lot of useful actionhooks to access Torro Forms in this special WordPress way of API. Access this Actionhooks by using add_action or add_filter methods from WordPress. If you are missing actionhooks which would help you and other users of the plugin, please let us know and write us an issue for that on Github.

This page contains the technical documentation for the Torro Form actionhook API and is written for developers. If you're not a developer you may want to review the Form Actions.

Procedual Actions

These actions are usable by the function add_action.

  • 'torro_formbuilder_container_save' --> int $form_id, int $container_id
  • 'torro_formbuilder_element_save' --> int $form_id, int $element_id
  • 'torro_formbuilder_element_answer_save' --> int $form_id, int $answer_id
  • 'torro_formbuilder_element_setting_save' --> int $form_id, int $setting_id
  • 'torro_formbuilder_save' --> int $form_id
  • 'torro_formcontroller_set_form' --> int $form_id
  • 'torro_response_saved' --> int $form_id, int $result_id, array $response
  • 'torro_submission_has_errors' --> array $errors
  • 'torro_form_copy' --> int $old_form_id, int $new_form_id, Torro_Form $old_form
  • 'torro_settings_page_init'
  • 'torro_settings_save_{$setting_name}'
  • 'torro_settings_save'
  • 'torro_export' --> int $form_id, string $filename

Display Actions

These actions are usable by the function add_action.

  • 'torro_formbuilder_dragdrop_start' --> int $form_id
  • 'torro_formbuilder_dragdrop_end' --> int $form_id
  • 'torro_formbuilder_options'
  • 'torro_form_send_button_before' --> int $form_id
  • 'torro_form_send_button_after' --> int $form_id
  • 'torro_element_start' --> int $element_id
  • 'torro_element_end' --> int $element_id
  • 'torro_element_admin_tabs_content' --> Torro_Form_Element $element
  • 'torro_element_admin_tabs_bottom' --> Torro_Form_Element $element
  • 'torro_settings_{$settings_tab}'
  • 'torro_setting_{$settings_name}_content'
  • 'torro_settings_field_input_after_{$field_name}' --> array $setting_data, mixed $value
  • 'torro_results_general_settings'
  • 'torro_form_setting_visitors_content_top'
  • 'torro_form_setting_access_controls_content_bottom'
  • 'form_access_controls_same_users_userfilters'
  • 'form_access_controls_allvisitors_userfilters'
  • 'form_access_controls_content_top'
  • 'form_access_controls_content_bottom'
  • 'torro_result_charts_postbox_element' --> Torro_Form_Element $element
  • 'torro_result_charts_postbox_bottom' --> int $form_id

Filters

The filters are usable by the function add_filter.

  • 'torro_formbuilder_dragdrop_start' --> int $form_id
  • 'torro_formbuilder_dragdrop_end' --> int $form_id
  • 'torro_formbuilder_options'
  • 'torro_form_action_url' --> string $action_url, int $form_id #example
  • 'torro_form_container_show_title' --> bool $show_title, int $form_id, int $container_id
  • 'torro_form_container_title' --> string $title, int $form_id, int $container_id
  • 'torro_form_button_previous_step_text' --> string $text, int $form_id
  • 'torro_form_button_next_step_text' --> string $text, int $form_id
  • 'torro_form_button_send_text' --> string $text, int $form_id
  • 'torro_form_send_button_before' --> int $form_id
  • 'torro_form_send_button_after' --> int $form_id
  • 'torro_form_text_already_entered --> string$text
  • 'torro_form_text_not_allowed' --> string$text
  • 'torro_form_text_to_be_logged_in' --> string$text
  • 'torro_form_timetrap_time' --> int$time
  • 'torro_element_start' --> int $element_id
  • 'torro_torro_element_type_validate_input' --> mixed $input, Torro_Element $element
  • 'torro_element_end' --> int $element_id
  • 'torro_input_id' --> string $id int $element_id
  • 'torro_input_name' --> string $name int $element_id
  • 'torro_input_classes' --> array $name object $element_type
  • 'torro_element_admin_tabs_content' --> Torro_Form_Element $element
  • 'torro_element_admin_tabs_bottom' --> Torro_Form_Element $element
  • 'torro_settings_{$settings_tab}'
  • 'torro_setting_{$settings_name}_content'
  • 'torro_settings_field_input_after_{$field_name}' --> array $setting_data, mixed $value
  • 'torro_results_general_settings'
  • 'torro_form_setting_visitors_content_top'
  • 'torro_form_setting_access_controls_content_bottom'
  • 'form_access_controls_same_users_userfilters'
  • 'form_access_controls_allvisitors_userfilters'
  • 'form_access_controls_content_top'
  • 'form_access_controls_content_bottom'
  • 'torro_result_charts_postbox_element' --> Torro_Form_Element $element
  • 'torro_result_charts_postbox_bottom' --> int $form_id

How to use Torro Forms Actionhooks and Filters

If you want to know more about how to use actionhooks and filters  WordPress Codex about Plugin API/Hooks.

Fork me on GitHub