Mailonix icon
eCommerce & WooCommerce

Mailonix hooks reference

  • By VillaTheme
  • v1.3.6 New
  • Updated

Mailonix 1.3.6 has 12 actions and 29 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 Mailonix fires an action
add_action( 'woocommerce_order_item_meta_start', function( $item_id, $item, $order, $arg4 ) {
	// Your code runs here.
}, 10, 4 );

// Change a value Mailonix is about to use
add_filter( 'woocommerce_email_order_item_quantity', function( $qty_display, $item ) {
	// Change $qty_display here.
	return $qty_display;
}, 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

  • includes/templates/order-items/style-1.php line 60 · used in 9 places
    do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false );
  • includes/templates/order-items/style-1.php line 74 · used in 5 places
    do_action( 'viwec_order_item_parts', $item_id, $item, $order, false );
  • includes/templates/order-items/style-1.php line 88 · used in 5 places
    apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item );
  • includes/templates/order-items/style-1.php line 73 · used in 5 places
    do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false );
  • includes/templates/order-items/style-1.php line 54 · used in 5 places
    apply_filters( 'woocommerce_order_item_name', $name, $item, false );
  • includes/templates/order-items/style-2.php line 86 · used in 4 places
    apply_filters( 'viwec_order_item_thumbnail', $image, $item );
  • includes/system-status.php line 39 · used in 3 places
    apply_filters( 'viwec_system_status_capability', 'manage_options' );
  • includes/email-render.php line 323 · used in 3 places
    do_action( 'woocommerce_email_customer_details', $this->order, in_array($email_type,['cancelled_order','failed_order','new_order']), false, '' );
  • includes/email-render.php line 934 · used in 3 places
    do_action( 'woocommerce_email_order_meta', $this->order, false, false, '' );
  • includes/templates/order-items/style-1.php line 31 · used in 3 places
    apply_filters( 'woocommerce_order_item_visible', true, $item );
  • includes/init.php line 62 · used in 2 places
    apply_filters( 'viwec_image_map', [ 'infor_icons' => [ 'home' => [ 'home-black' => esc_html__( 'Black', 'viwec-email-template-customizer' ), 'home-white' => esc_html__( 'White', 'viwec-email-template-customizer' ), 'home-white-border' => esc_html__( 'White/Border', 'viwec-email-template-customizer' ), 'home-black-border' => esc_html__( 'Black/Border', 'viwec-email-template-customizer' ), 'home-black-white' => esc_html__( 'Black... );
  • includes/templates/order-items/style-2.php line 47 · used in 2 places
    apply_filters( 'viwec_order_item_thumbnail_url', $img_url, $product, $item );
  • includes/email-render.php line 931 · used in 2 places
    do_action( 'woocommerce_email_after_order_table', $this->order, false, false, '' );
  • includes/email-render.php line 928 · used in 2 places
    do_action( 'woocommerce_email_before_order_table', $this->order, false, false, '' );
  • includes/support/support.php line 974
    apply_filters( 'villatheme_check_requires', wp_parse_args( $args, [ 'plugin_name' => '', 'php_version' => '', 'wp_version' => '', 'wc_version' => '', 'require_plugins' => [], ] ) );
  • includes/support/support.php line 535
    apply_filters( 'villatheme_form_ads_data', ob_get_clean() );
  • includes/init.php line 681
    do_action( 'villatheme_support_email-template-customizer-for-woo' );
  • includes/utils.php line 178
    apply_filters( 'viwec_accept_email_type', $accept_emails );
  • includes/utils.php line 440
    apply_filters( 'viwec_admin_email_types', $r );
  • includes/templates/email-header.php line 42
    apply_filters( 'viwec_after_render_style', '' );
  • includes/email-builder.php line 126
    apply_filters( 'viwec_capabilities_role', array() );
  • includes/init.php line 490
    apply_filters( 'viwec_create_nonce', wp_create_nonce( 'viwec_nonce' ) );
  • includes/email-builder.php line 127
    apply_filters( 'viwec_create_posts_role', '' );
  • includes/templates/email-template.php line 2
    do_action( 'viwec_email_template', $args );
  • includes/email-render.php line 1067
    apply_filters( 'viwec_get_html_recover_content', wp_kses( $content, viwec_allowed_html() ), $content );
  • includes/utils.php line 370
    apply_filters( 'viwec_live_edit_shortcodes', [] );
  • includes/templates/order-items/style-1.php line 39
    apply_filters( 'viwec_order_detail_default_image_size', array( 64, 64 ) );
  • includes/templates/order-items/style-1.php line 48
    apply_filters( 'viwec_order_detail_default_show_image', false );
  • includes/utils.php line 279
    apply_filters( 'viwec_register_element_for_all_email_type', [ 'layout/grid1cols', 'layout/grid2cols', 'layout/grid3cols', 'layout/grid4cols', 'html/text', 'html/image', 'html/button', 'html/suggest_product', 'html/post', 'html/contact', 'html/menu', 'html/social', 'html/divider', 'html/spacer', ] );
  • includes/utils.php line 366
    apply_filters( 'viwec_register_email_type', [] );
  • includes/utils.php line 687
    apply_filters( 'viwec_register_preview_shortcode', [], $object );
  • includes/utils.php line 687
    apply_filters( 'viwec_register_replace_shortcode', [], $object, $args );
  • includes/email-render.php line 278
    do_action( 'viwec_render_content', $type, $el, $this );
  • includes/email-samples.php line 24
    apply_filters( 'viwec_sample_subjects', [ 'default' => esc_html__( 'This template will be used in the case of none detected template and the subject will be get from original email', 'viwec-email-template-customizer' ), 'new_order' => '{customer_name} placed a new order #{order_number} on your store', 'cancelled_order' => '{customer_name} has cancelled order #{order_number} on your store', 'failed_order' => 'Order #{order_number} has... );
  • includes/email-samples.php line 49
    apply_filters( 'viwec_sample_templates', [ 'default' => [ 'basic' => [ 'name' => esc_html__( 'Basic', 'viwec-email-template-customizer' ), 'data' => '{"style_container":{"background-color":"#f2f2f2","background-image":"none"},"rows":{"0":{"props":{"style_outer":{"padding":"15px 35px","background-image":"none","background-color":"#162447","border-width":"0px","border-radius":"0px","border-color":"transparent","width":"600px"},"type":"l... );
  • includes/templates/email-type.php line 46
    do_action( 'viwec_setting_options', $type_selected );
  • includes/system-status.php line 181
    apply_filters( 'viwec_system_status_report', $report );
  • includes/system-status.php line 464
    apply_filters( 'viwec_system_status_report_headers', $headers, $issue, $report );
  • includes/email-render.php line 1048
    do_action( 'woocommerce_email_order_details', $this->order, false, false, '' );
  • includes/templates/order-items/style-1.php line 50
    apply_filters( 'woocommerce_order_item_thumbnail', $image, $item );

Generated from Mailonix'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: