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.


Runs when a form is submitted successfully, after the submission was saved.

Parameters: $submission$form


Runs when a form is submitted but a validation error occurs.

Parameters: $error_code$form$data

Related Posts from Our Knowledge Base

Learn how to install the HTML Forms Premium add-on to get access to additional features not found in the base plugin.

HTML Forms comes with built-in form validation, but you can add your own as well with WordPress filters.