HTML Forms & Contact Form for WordPress: Narrative Forms 1.2.4 has 24 actions and 33 filters, read directly from its source code on Nov 19, 2026. The list updates automatically when a new version is released.
How to use these hooks
Actions let you run your own code at a specific moment. Filters let you change a value before the plugin uses it. Put your code in a child theme's functions.php or a code-snippets plugin, never in the plugin's own files, because updates overwrite them.
// Run your own code when HTML Forms & Contact Form for WordPress: Narrative Forms fires an action
add_action( 'nrfm_submission_deleted', function( $arg1 ) {
// Your code runs here.
}, 10, 1 );
// Change a value HTML Forms & Contact Form for WordPress: Narrative Forms is about to use
add_filter( 'nrfm_manage_capability', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );Parts of a name in {braces} are filled in at runtime (for example a post type or field ID). Choose Example on any hook for a ready-to-edit snippet.
All hooks
-
/** * Filter capability used to manage Narrative Forms admin actions. */ apply_filters( 'nrfm_manage_capability', 'manage_options' ); -
/** * Fires after a submission row is deleted, so add-ons can clean up related * data. */ do_action( 'nrfm_submission_deleted', (int) $submission_id ); -
/** * Installed add-ons render their own panels here, e.g. a license * activate/deactivate form. Fired once on the Add-ons screen. */ do_action( 'nrfm_addons_screen' ); -
/** * Fires right after the field-insert toolbar on the form edit screen. */ do_action( 'nrfm_field_buttons_after', $form ); -
/** * Filter whether unread-submission badges show for a form. Lets developers * turn badges off programmatically without a UI toggle. */ apply_filters( 'nrfm_notifications_enabled', $enabled, (int) $form_id ); -
/** * Filter the required field names enforced for this submission. */ apply_filters( 'nrfm_required_fields', $required_fields, $data, $form ); -
apply_filters( 'appsero_is_local', $is_local ); -
apply_filters( 'nrfm_rest_api_capability', 'manage_options' ); -
apply_filters( "{$this->client->slug}_tracker_data", $data ); -
do_action( "{$this->client->slug}_tracker_optin", $this->get_tracking_data() ); -
do_action( "{$this->client->slug}_tracker_optout" ); -
do_action( "{$this->client->slug}_uninstall_reason_submitted", $data ); -
do_action( 'after_appsero_license_section' ); -
apply_filters( 'appsero_custom_deactivation_reasons', [], $this->client ); -
apply_filters( 'appsero_endpoint', 'https://api.appsero.com' ); -
do_action( 'before_appsero_license_section' ); -
apply_filters( 'nrfm_ai_api_key', $key ); -
apply_filters( 'nrfm_ai_max_tokens', 8000 ); -
apply_filters( 'nrfm_ai_timeout', 60 ); -
apply_filters( 'nrfm_data_url_max_bytes', 5 * 1024 * 1024 ); -
apply_filters( 'nrfm_data_url_mime_types', array( 'image/png' => 'png', 'image/jpeg' => 'jpg', 'image/gif' => 'gif', 'image/webp' => 'webp', ) ); -
apply_filters( 'nrfm_edit_link_ttl', 90 * DAY_IN_SECONDS ); -
apply_filters( 'nrfm_form_default_messages', array( 'success' => __('Thank you! We will be in touch soon.', 'narrative-forms'), 'error' => __('Oops. An error occurred.', 'narrative-forms'), 'invalid_email' => __('Sorry, that email address looks invalid.', 'narrative-forms'), 'required_field_missing' => __('Please fill in the required fields.', 'narrative-forms'), 'invalid_file_type' => __('One or more files have an unsupported file type.'... ); -
apply_filters( 'nrfm_form_default_settings', array( 'save_submissions' => 1, 'hide_after_success' => 0, 'redirect_url' => '', 'honeypot_enabled' => 1, 'async_actions' => 1, ) ); -
apply_filters( 'nrfm_form_html', $form_html, $this ); -
do_action( 'nrfm_form_messages_after_error', $form ); -
apply_filters( 'nrfm_form_render', $html, $this ); -
do_action( 'nrfm_form_settings_access_availability', $form ); -
do_action( 'nrfm_form_settings_after_redirect', $form ); -
do_action( 'nrfm_form_settings_data_notifications', $form ); -
do_action( 'nrfm_form_settings_sharing', $form ); -
do_action( 'nrfm_form_submitted', $form_id, $cleaned_data, $submission_id ); -
do_action( 'nrfm_form_tab_content', $nrfm_tab_key, $form ); -
apply_filters( 'nrfm_form_tabs', $nrfm_tabs, $nrfm_form_id ); -
do_action( 'nrfm_process_form_actions', $actions, $data, $form ); -
apply_filters( 'nrfm_rest_api_key', $key ); -
do_action( 'nrfm_save_form', $form_id, $data ); -
apply_filters( 'nrfm_save_form_messages', $data['messages'] ); -
apply_filters( 'nrfm_save_form_settings', $data['settings'] ); -
apply_filters( 'nrfm_save_global_settings', $settings ); -
apply_filters( 'nrfm_save_resume_markup', $insert, $form, $settings ); -
do_action( 'nrfm_settings_after_honeypot' ); -
do_action( 'nrfm_settings_api_integrations' ); -
do_action( 'nrfm_settings_form_protection' ); -
do_action( 'nrfm_settings_form_urls' ); -
apply_filters( 'nrfm_store_data_urls', true ); -
do_action( 'nrfm_submission_updated', $submission_id, $form_id, $merged ); -
apply_filters( 'nrfm_template_allow_get', false ); -
apply_filters( 'nrfm_template_allow_request', false ); -
apply_filters( 'nrfm_template_filters', $filters ); -
apply_filters( 'nrfm_template_providers', $providers ); -
apply_filters( 'nrfm_validate_submission', array('valid' => true), $data, $form ); -
do_action( 'nrfm_webhook_error', $response, $url, $args, $webhook_config ); -
apply_filters( 'nrfm_webhook_request_args', $args, $payload, $webhook_config ); -
apply_filters( 'nrfm_webhook_request_url', $url, $payload, $webhook_config ); -
do_action( 'nrfm_webhook_response', $response, $url, $args, $webhook_config );
Generated from HTML Forms & Contact Form for WordPress: Narrative Forms's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Done for you
Rather have it built for you?
Tell us what should change and we’ll write and test the code using these hooks.
Custom hook snippet
from $49
A small, update-safe change built on the plugin’s own hooks.
- Code written against the plugin’s actions and filters
- Tested on a staging copy of your site
- Install instructions included
Typical turnaround: 2–3 business days
Choose thisPlugin customisation
from $149
New features or changed behaviour, without editing the plugin’s files.
- Built as a companion plugin, so updates never wipe it
- Exact quote before we start
- Tested on staging, then deployed
Typical turnaround: 3–7 business days
Choose thisNot sure which fits? Describe what you need and we’ll suggest the simplest option.
Can't find the right hook?
We can build the customisation for you. Describe what you need: