HT Mega Addons for Elementor icon
Page Builders & Blocks

HT Mega Addons for Elementor hooks reference

  • By DevItems
  • v3.2.9 New
  • Updated

HT Mega Addons for Elementor 3.2.9 has 18 actions and 47 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.

functions.phpyour child theme
// Run your own code when HT Mega Addons for Elementor fires an action
add_action( 'elementor/page_templates/header-footer/after_content', function() {
	// Your code runs here.
}, 10, 1 );

// Change a value HT Mega Addons for Elementor is about to use
add_filter( 'htmega_template_import_suggest_editor_reload', function( $needs_widgets_refresh, $data ) {
	// Change $needs_widgets_refresh here.
	return $needs_widgets_refresh;
}, 10, 2 );

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

  • extensions/ht-builder/templates/archive-canvas.php line 47 · used in 2 places
    /**
     * After canvas page template content.
     */
    do_action( 'elementor/page_templates/canvas/after_content' );
  • extensions/ht-builder/templates/archive-canvas.php line 33 · used in 2 places
    /**
     * Before canvas page template content.
     */
    do_action( 'elementor/page_templates/canvas/before_content' );
  • admin/include/class.library-source.php line 194
    /**
     * When true, the editor scripts call Elementor `get_widgets_config` before
     * `document/elements/import` so newly-enabled HT Mega widgets appear in
     * `elementor.widgetsCache` (historic key name: reload).
     */
    apply_filters( 'htmega_template_import_suggest_editor_reload', $needs_widgets_refresh, $data );
  • extensions/ht-builder/classes/class.header_footer.php line 204 · used in 4 places
    do_action( 'elementor/post/render', $template_id );
  • extensions/ht-builder/templates/archive-canvas.php line 35 · used in 3 places
    do_action( 'htmegabuilder_blog_content' );
  • extensions/ht-builder/templates/single-canvas.php line 42 · used in 3 places
    do_action( 'htmegabuilder_single_blog_content' );
  • the_title

    filter
    extensions/ht-menu/menu/free-menu/htmenu_walker.php line 135 · used in 3 places
    apply_filters( 'the_title', $item->title, $item->ID );
  • includes/class.updater.php line 154 · used in 2 places
    do_action( 'htmega_updated', HTMEGA_VERSION, false );
  • extensions/ht-builder/classes/class.header_footer.php line 286 · used in 2 places
    do_action( 'htmegabuilder_header_content' );
  • extensions/ht-menu/menu/free-menu/menu_term.php line 177 · used in 2 places
    apply_filters( 'htmegamenu_nav_menu_args', $args );
  • extensions/ht-menu/menu/free-menu/htmenu_walker.php line 74 · used in 2 places
    apply_filters( 'nav_menu_css_class', array_filter( $classes ), $item, $args, $depth );
  • extensions/ht-menu/menu/free-menu/htmenu_walker.php line 148 · used in 2 places
    apply_filters( 'walker_nav_menu_start_el', $item_output, $item, $depth, $args );
  • includes/class.single-product-ajax-addto-cart.php line 43 · used in 2 places
    apply_filters( 'woocommerce_add_to_cart_product_id', absint( isset( $product_info['product_id'] ) ? $product_info['product_id'] : 0 ) );
  • includes/class.single-product-ajax-addto-cart.php line 55 · used in 2 places
    apply_filters( 'woocommerce_add_to_cart_validation', true, $product_id, $quantity, $variation_id, $variations );
  • includes/class.single-product-ajax-addto-cart.php line 59 · used in 2 places
    do_action( 'woocommerce_ajax_added_to_cart', $product_id );
  • includes/class.single-product-ajax-addto-cart.php line 69 · used in 2 places
    apply_filters( 'woocommerce_cart_redirect_after_error', get_permalink( $product_id ), $product_id );
  • admin/include/settings-panel/includes/classes/Api/Settings.php line 185
    apply_filters( "{$this->slug}_settings_sanitize", isset($settings_received['blocks']) ? $settings_received['blocks'][ $setting['id'] ] : $settings_received[ $setting['id'] ], $this->errors, $setting );
  • admin/include/settings-panel/includes/classes/Api/Settings.php line 186
    apply_filters( "{$this->slug}_settings_sanitize_{$setting['id']}", $output, $this->errors, $setting );
  • admin/include/class.dynamic-notice.php line 70
    apply_filters( 'hastech_notice_user_cap_check', current_user_can( $capability ) );
  • admin/include/settings-panel/includes/classes/Admin/Options_field.php line 2693
    apply_filters( 'htmega_admin_fields', $allFields );
  • admin/include/settings-panel/includes/classes/Admin/Options_field.php line 81
    apply_filters( 'htmega_admin_fields_sections', $tabs );
  • admin/include/settings-panel/includes/classes/Admin/Options_field.php line 138
    apply_filters( 'htmega_admin_fields_sub_sections', $subtabs );
  • admin/include/settings-panel/includes/templates/settings-page.php line 3
    do_action( 'htmega_admin_notices' );
  • includes/helper-function.php line 1686
    do_action( 'htmega_after_mega_menu_companion_pack' );
  • includes/template-import-widget-enable.php line 811
    apply_filters( 'htmega_auto_enable_modules_on_template_import', true );
  • includes/template-import-widget-enable.php line 776
    apply_filters( 'htmega_auto_enable_widgets_on_template_import', true );
  • htmega-blocks/includes/classes/Blocks_List.php line 206
    apply_filters( 'htmega_block_list', $blockList );
  • admin/include/settings-panel/includes/classes/Onboarding.php line 283
    do_action( 'htmega_collect_diagnostic_data', $diagnostic_nonce );
  • admin/include/settings-panel/includes/templates/dashboard-general.php line 151
    apply_filters( 'htmega_dashboard_general', ob_get_clean() );
  • includes/class.assests.php line 373
    apply_filters( 'htmega_editor_preview_widget_bundle_extra_deps', array( 'slick', 'beerslider', 'easy-pie-chart', 'htmega-countdown', 'htmega-newsticker', 'isotope', 'swiper', 'magnific-popup', 'ytplayer', 'vaccordion', 'counterup', 'animated-heading', 'mapmarker', 'magnifier', 'masonry', 'imagesloaded', ) );
  • includes/helper-function.php line 1665
    do_action( 'htmega_enqueue_mega_menu_companion_assets' );
  • includes/helper-function.php line 1470
    apply_filters( 'htmega_force_global_assets', $force_standalone );
  • includes/helper-function.php line 1634
    apply_filters( 'htmega_has_active_mega_menu', $detected );
  • includes/helper-function.php line 1706
    apply_filters( 'htmega_legacy_mode', false );
  • admin/include/settings-panel/includes/templates/sidebar-banner.php line 21
    apply_filters( 'htmega_license_title', 'lifetime' );
  • includes/class.updater.php line 286
    apply_filters( 'htmega_partial_migration_fixes', array() );
  • includes/class.updater.php line 60
    apply_filters( 'htmega_plugin_migrations', $migrations );
  • includes/class.query-cache.php line 37
    apply_filters( 'htmega_query_cache_skip', false, $args );
  • includes/class.query-cache.php line 41
    apply_filters( 'htmega_query_cache_ttl', max( 0, $ttl ), $args );
  • includes/class.assests.php line 351
    apply_filters( 'htmega_script_list', $script_list );
  • admin/include/settings-panel/includes/classes/Admin/Options_field.php line 2664
    apply_filters( 'htmega_sections_element_fields', array( array( 'id' => 'hero', 'name' => __( 'Hero 2026', 'ht-mega-for-elementor' ), 'type' => 'element', 'default' => 'on', 'label_on' => __( 'On', 'ht-mega-for-elementor' ), 'label_off' => __( 'Off', 'ht-mega-for-elementor' ), 'video_link' => $htmega_sections_video_links['hero'], 'doc_link' => $htmega_sections_doc_links['hero'] ), array( 'id' => 'about', 'name' => __( 'About / Feature 2026', '... );
  • admin/include/settings-panel/includes/classes/Admin/Options_field.php line 2678
    apply_filters( 'htmega_sections_gutenberg_fields', array( array( 'id' => 'hero-2025', 'name' => __( 'Hero 2026', 'ht-mega-for-elementor' ), 'type' => 'element', 'default' => 'off', 'label_on' => __( 'On', 'ht-mega-for-elementor' ), 'label_off' => __( 'Off', 'ht-mega-for-elementor' ), 'video_link' => $htmega_sections_video_links['hero'], 'doc_link' => $htmega_sections_doc_links['hero'] ), array( 'id' => 'about-2025', 'name' => __( 'About / Featu... );
  • includes/helper-function.php line 1523
    apply_filters( 'htmega_should_enqueue_global_assets', $needs );
  • includes/helper-function.php line 1661
    apply_filters( 'htmega_should_enqueue_mega_menu_companion_pack', true );
  • admin/include/settings-panel/includes/templates/sidebar-banner.php line 87
    apply_filters( 'htmega_sidebar_adds_banner', $content );
  • includes/class.updater.php line 255
    apply_filters( 'htmega_stamp_migrations', array() );
  • includes/class.assests.php line 146
    apply_filters( 'htmega_style_list', $style_list );
  • includes/template-import-widget-enable.php line 395
    apply_filters( 'htmega_template_import_module_signals', $signals, $elements, $page_settings );
  • includes/template-import-widget-enable.php line 744
    apply_filters( 'htmega_template_import_widget_type_settings_map', $map );
  • admin/include/template-library.php line 188
    apply_filters( 'htmega_use_vue_template_library', true );
  • extensions/wc-sales-notification/classes/class.sale_notification.php line 65
    apply_filters( 'htmega_wcsales_allow_html', false );
  • includes/widgets_control.php line 697
    apply_filters( 'htmega_widget_list', $widget_list );
  • htmega-blocks/includes/classes/Blocks_init.php line 96
    apply_filters( 'htmega/register_block_args', $block );
  • admin/include/settings-panel/includes/helper-functions.php line 39
    apply_filters( "htmegaopt_get_option_{$key}", $value, $key, $default );
  • admin/include/settings-panel/includes/helper-functions.php line 83
    apply_filters( 'htmegaopt_get_settings', $settings );
  • the_content

    filter
    extensions/ht-builder/widgets/bl_post_content.php line 137
    apply_filters( 'the_content', get_the_content() );
  • the_excerpt

    filter
    extensions/ht-builder/widgets/bl_post_excerpt.php line 120
    apply_filters( 'the_excerpt', get_the_excerpt() );
  • extensions/wc-sales-notification/classes/class.sale_notification.php line 78
    apply_filters( 'wcsales_product_data', $p );
  • includes/widgets/htmega_wc_add_to_cart.php line 277
    do_action( "woocommerce_{$product->get_type()}_add_to_cart" );
  • includes/widgets/htmega_tabs.php line 1148
    apply_filters( 'wpml_object_id', $item['template_id'], 'elementor_library' );
  • admin/include/class.settings-api.php line 674
    do_action( "wsa_form_bottom_{$form['id']}", $form );
  • admin/include/class.settings-api.php line 671
    do_action( "wsa_form_top_{$form['id']}", $form );

Generated from HT Mega Addons for Elementor'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: