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 includes a visibility feature that lets you only show a form when a user is logged in to your site. This feature lets you have greater control over who can see, and submit data, to your website. Enabling the Require Users to Log In Feature You’ll need to install HTML Forms Premium […]
HTML Forms Premium includes a feature to provide you with form submission notifications inside the WordPress admin. The notifications show you how many unread, or unseen, submissions you have. These notifications appear in the admin’s menu, on the HTML Forms list, and on each form’s Submissions tab. How Submission Notifications Appear WordPress Admin Menu A […]