MetForm 4.3.5 has 33 actions and 22 filters, read directly from its source code on Nov 17, 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 MetForm fires an action
add_action( 'metform/entries/after_insert', function( $entry_id, $form_id, $form_data, $form_settings ) {
// Your code runs here.
}, 10, 4 );
// Change a value MetForm is about to use
add_filter( 'metform_form_builder_advanced_control_groups', function( $groups, $block_type, $exclude ) {
// Change $groups here.
return $groups;
}, 10, 3 );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
-
/** * Filters the Advanced-tab control groups of a block. */ apply_filters( 'metform_form_builder_advanced_control_groups', $groups, $block_type, $exclude ); -
/** * Filters the template-library endpoint URL. */ apply_filters( 'metform_template_library_api_url', self::API_URL ); -
metform_template_library_key
filter/** * Filters the API key sent to the template library. */ apply_filters( 'metform_template_library_key', (string) $key ); -
/** * A filter to allow the htaccess rules */ apply_filters( 'metform_upload_root_htaccess_rules', $rules ); -
metform/entries/after_insert
action/** * Fires after an entry and its form data are saved. */ do_action( 'metform/entries/after_insert', $this->entry_id, $form_id, $this->form_data, $form_settings ); -
/** * Lets an add-on send the submission to a third-party service. Runs before the * entry is stored, so $context['entry_id'] is not set yet and * $context['form_data'] is the submitted data as received. Callbacks report a * failure on $response (status, failure_type, error). */ do_action( 'metform/entries/submit/integrations', $this->response, $this->get_hook_context($form_data, $form_data) ); -
/** * Lets an add-on notify the submitter, for example with a confirmation email. * $context['form_data'] is the sanitised data that was stored. Callbacks * report a failure on $response (status, failure_type, error). */ do_action( 'metform/entries/submit/notify_user', $this->response, $this->get_hook_context($this->form_data, $form_data) ); -
/** * Lets an add-on block the submission before anything is stored. Return a * WP_Error to block it: its code becomes the response failure_type and its * message the error shown to the visitor. */ apply_filters( 'metform/entries/submit/pre_check', null, $form_id, $form_data, $this->form_settings ); -
metform/form_builder/blocks
filter/** * Filters the list of Form Builder block instances to register. */ apply_filters( 'metform/form_builder/blocks', $blocks ); -
/** * Fires after canvas runtime assets are enqueued. */ do_action( 'metform/form_builder/canvas/enqueue_scripts', $post_id ); -
/** * Filters whether a widget inside a MetForm form may emit template bindings. */ apply_filters( 'metform/form_template/trusted_widget', $trusted, $widget ); -
/** * Extra attributes for the form wrapper, as [ name => value ]. MetForm Pro * uses it for data-stop-vertical-effect and data-views-endpoint. */ apply_filters( 'metform/form/wrapper_attributes', [], $form_id, $form_settings ); -
/** * URL of the CSV export for this form. MetForm Pro provides it; without one, a * "Pro" placeholder is shown instead. */ apply_filters( 'metform/forms/list/csv_export_url', '', $post_id ); -
metform/icon/max_upload_size
filter/** * Filters the maximum allowed custom icon SVG file size, in bytes. */ apply_filters( 'metform/icon/max_upload_size', 100 * KB_IN_BYTES ); -
metform/icons/cache_dir
filter/** * Filters the icon library cache directory. Return '' to disable the * persistent cache. */ apply_filters( 'metform/icons/cache_dir', $dir ); -
metform/icons/libraries
filter/** * Filters the icon libraries MetForm can render. */ apply_filters( 'metform/icons/libraries', array( self::DEFAULT_LIBRARY => array( 'label' => __( 'Font Awesome', 'metform' ), 'file' => METFORM_FREE_PATH . self::FONT_AWESOME_FILE, 'styles' => array( 'solid' => array( 'prefix' => 'fas', 'label' => __( 'Solid', 'metform' ), ), 'regular' => array( 'prefix' => 'far', 'label' => __( 'Regular', 'metform' ), ), 'brands' => array( 'prefix' => 'fab', 'label' => __( 'Brands', 'metform' ), ), ), ... ); -
active_plugins
filterapply_filters( 'active_plugins', get_option('active_plugins') ); -
metform_submission_failed
actiondo_action( 'metform_submission_failed', intval($id), [], $context ); -
do_action( "{$this->text_domain}/pro_awareness/after_grid_contents" ); -
do_action( "{$this->text_domain}/pro_awareness/before_grid_contents" ); -
edit_with_emailkit_loaded
actiondo_action( 'edit_with_emailkit_loaded' ); -
apply_filters( 'elementskit/admin/onboard_steps/list', $onboard_steps ); -
do_action( 'elementskit/admin/sections/userdata' ); -
do_action( 'get_automixy_settings_content' ); -
do_action( 'get_metform_email_verification_settings' ); -
met_form_email_verification
actiondo_action( 'met_form_email_verification', $this->entry_id, $this->form_data[$this->email_name], $this->form_settings ); -
do_action( 'metform_after_entries_table_data', $form_id, $form_data, $map_data ); -
do_action( 'metform_after_store_form_data', $form_id, $form_data, $this->form_settings, $attributes ); -
do_action( 'metform_before_store_form_data', $form_id, $form_data, $this->form_settings, $attributes ); -
apply_filters( 'metform_filter_before_store_form_data', $this->form_data, $form_id, $this->form_settings, $attributes ); -
do_action( 'metform_fluent_crm_editor_markup' ); -
metform_settings_content
actiondo_action( 'metform_settings_content' ); -
do_action( "metform_settings_subtab_{$id}" ); -
do_action( "metform_settings_subtab_content_{$id}" ); -
metform_settings_tab
actiondo_action( 'metform_settings_tab' ); -
do_action( 'metform_sms_integration_editor_markup' ); -
metform_style_breakpoints
filterapply_filters( 'metform_style_breakpoints', self::DEFAULT_BREAKPOINTS ); -
metform/admin/after_save
actiondo_action( 'metform/admin/after_save' ); -
metform/after_load
actiondo_action( 'metform/after_load' ); -
metform/before_load
actiondo_action( 'metform/before_load' ); -
metform/core/package_type
filterapply_filters( 'metform/core/package_type', 'free' ); -
do_action( 'metform/form_builder/editor/enqueue_scripts', $post_id, $all_blocks ); -
apply_filters( 'metform/form_builder/extra_wrapper_attributes', '', $form_id, $form_settings ); -
do_action( 'metform/form_builder/frontend/enqueue_assets', $post_id ); -
do_action( 'metform/form_builder/frontend/enqueue_scripts', $post_id ); -
apply_filters( 'metform/form_builder/migrate_widget', null, $widget_type, $settings, $node_id, $parent_id ); -
do_action( 'metform/onload/enqueue_scripts' ); -
metform/onload/input_widgets
filterapply_filters( 'metform/onload/input_widgets', $widget_list ); -
do_action( 'mf_add_conditional_redirect_input' ); -
mf_add_url_databypass_input
actiondo_action( 'mf_add_url_databypass_input' ); -
mf_after_validation_check
filterapply_filters( 'mf_after_validation_check', ['is_valid' => $validate, 'form_data' => $form_data , 'file_data' => $file_data] ); -
mf_form_settings_tab
actiondo_action( 'mf_form_settings_tab' ); -
mf_form_settings_tab_content
actiondo_action( 'mf_form_settings_tab_content' ); -
do_action( "mf_push_tab_content_{$parent_id}" ); -
wpmet_onboard_status_map
filterapply_filters( 'wpmet_onboard_status_map', self::ONBOARD_STATUS_MAP );
Generated from MetForm's GPL-licensed source code. Hooks inside bundled third-party libraries are not listed.
Can't find the right hook?
We can build the customisation for you. Describe what you need: