Action Hooks
It’s possible to modify or extend the default behavior of HTML Forms beyond what is possible with the available settings. To achieve this, you can use any of the available action hooks and filter hooks in the plugin.
To learn more about what action hooks are, please refer to the WordPress plugin API documentation.
Available Action Hooks
Below is a list of all available action hooks in the plugin.
hf_form_success
Runs when a form is submitted successfully, after the submission was saved.
Parameters: $submission, $form
hf_form_error
Runs when a form is submitted but a validation error occurs.
Parameters: $error_code, $form, $data
Related Posts from Our Knowledge Base
HTML Forms Premium adds the ability to export your form submissions to a spreadsheet file on your computer. This is an excellent way to pull data from your site for backup or to send to others. This feature includes a simple feature to offer additional control over the export file format. How to Export Submissions […]
HTML Forms has an optional Enable Nonce setting to add the WordPress nonce field to each of your forms. The WordPress nonce provides an extra security and anti-spam layer to your forms. The nonce field helps HTML Forms confirm that a form submission is coming from your site. This is a simple way to add […]