Filter 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 filter hooks are, please refer to the WordPress plugin API documentation.
Available Filter Hooks
Below is a list of all available filter hooks in the plugin.
hf_form_element_action_attr
Filters the action attribute for the form element.
Default value: null
hf_form_element_class_attr
Filters the CSS classes which are added to the form element’s class attribute.
Default value: ""
hf_form_html
Filters the complete form HTML when the form is outputted.
hf_validate_form
Filters the error code when a form is validated. Return an empty string if the form validates without errors.
Default value: ""
Related Posts from Our Knowledge Base
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 […]
HTML Forms Premium adds a File Upload field to the base plugin. You can use this field to let users include files with their form submissions. You won’t have to write any of your own file uploading or processing code. HTML Forms Premium will handle all of that for you. File Upload Field Once you […]