WebToffee eCommerce Marketing Automation 2.1.8 has 14 actions and 41 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 WebToffee eCommerce Marketing Automation fires an action
add_action( 'woocommerce_email_footer', function( $email ) {
// Your code runs here.
}, 10, 1 );
// Change a value WebToffee eCommerce Marketing Automation is about to use
add_filter( 'woocommerce_cart_item_name', function( $value, $rp_decorator_cart_item, $rp_decorator_cart_item_key ) {
// Change $value here.
return $value;
}, 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
-
woocommerce_email_header
action/** * Hook: woocommerce_email_header. */ do_action( 'woocommerce_email_header', $email_heading, $email ); -
/** * Action hook to execute the email body content */ do_action( 'wt_decorator_email_body_content', $coupon, $sent_to_admin, $plain_text, $email ); -
/** * Hook: woocommerce_email_customer_details. */ do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
woocommerce_email_order_meta
action/** * Hook: woocommerce_email_order_meta. */ do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
/** * Hook: woocommerce_email_order_details. */ do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
woocommerce_cart_item_name
filter/** * Filter the cart item name. */ apply_filters( 'woocommerce_cart_item_name', $rp_decorator_product->get_name(), $rp_decorator_cart_item, $rp_decorator_cart_item_key ); -
/** * Filter the cart item product. */ apply_filters( 'woocommerce_cart_item_product', $rp_decorator_product, $rp_decorator_cart_item, $rp_decorator_cart_item_key ); -
/** * Filter the cart item product ID. */ apply_filters( 'woocommerce_cart_item_product_id', $rp_decorator_cart_item['product_id'], $rp_decorator_cart_item, $rp_decorator_cart_item_key ); -
/** * Filter the cart item thumbnail. */ apply_filters( 'woocommerce_cart_item_thumbnail', $rp_decorator_product->get_image( array( 80, 80 ) ), $rp_decorator_cart_item, $rp_decorator_cart_item_key ); -
/** * Filter the cart item visibility. */ apply_filters( 'woocommerce_cart_item_visible', true, $rp_decorator_cart_item, $rp_decorator_cart_item_key ); -
woocommerce_decorator_role
filter/** * Allow role. */ apply_filters( 'woocommerce_decorator_role', 'manage_woocommerce' ); -
/** * This filter is documented in * woocommerce/templates/emails/email-order-details.php */ apply_filters( 'woocommerce_email_display_order_number', true, $order, $email ); -
/** * This filter is documented in * woocommerce/templates/emails/email-order-details.php */ apply_filters( 'woocommerce_email_order_details_heading', '', $order, $email ); -
/** * This filter is documented in * woocommerce/templates/emails/email-order-items.php */ apply_filters( 'woocommerce_email_order_item_quantity', $rp_decorator_qty_display, $rp_decorator_item ); -
/** * Alter the cart abandonment email button style. */ apply_filters( 'wt_sc_alter_abandonment_email_button_style', $rp_decorator_style, $coupon ); -
/** * Filter to alter the abandonment reminder email button style */ apply_filters( 'wt_sc_alter_abandonment_reminder_email_button_style', $rp_decorator_style ); -
/** * Filter to alter the gift card email price */ apply_filters( 'wt_sc_alter_giftcard_email_price', $rp_decorator_coupon_obj->get_amount(), $rp_decorator_coupon_obj ); -
/** * Action hook to trigger after coupon code */ do_action( 'wt_sc_giftcard_email_after_coupon_code', $rp_decorator_coupon_obj ); -
do_action( 'woocommerce_subscriptions_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'customizer_repeater_input_types_filter', 'color', $this->id, 'customizer_repeater_color_control' ); -
repeater_input_labels_filter
filterapply_filters( 'repeater_input_labels_filter', esc_html__('Color', 'decorator-woocommerce-email-customizer'), $this->id, 'customizer_repeater_color_control' ); -
wtwraq_email_quote_details
actiondo_action( 'wtwraq_email_quote_details', $quote, $sent_to_admin, $plain_text, $email ); -
woocommerce_mail_content
filterapply_filters( 'woocommerce_mail_content', $content ); -
do_action( 'wt_decorator_email_body_content_text', $email ); -
apply_filters( 'wt_decorator_social_icon_type', $social_icons ); -
{$email_id}_email_body
filterapply_filters( "{$email_id}_email_body", $email->format_string($email_body), $email->object ); -
plugin_locale
filterapply_filters( 'plugin_locale', get_locale(), 'decorator-woocommerce-email-customizer' ); -
rp_decorator_capability
filterapply_filters( 'rp_decorator_capability', 'manage_woocommerce' ); -
rp_decorator_option_value
filterapply_filters( 'rp_decorator_option_value', $value, $key, $selector, $stored_value ); -
wbte_dec_add_custom_fonts
filterapply_filters( 'wbte_dec_add_custom_fonts', $font_families ); -
apply_filters( 'wbte_dec_custom_font_addition', $font_families ); -
wbte_dec_header_image
filterapply_filters( 'wbte_dec_header_image', get_option('woocommerce_email_header_image',''), $rp_decorator_custom_style ); -
do_action( 'woocommerce_email_after_order_table', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_before_order_table', $order, $sent_to_admin, $plain_text, $email ); -
woocommerce_order_item_class
filterapply_filters( 'woocommerce_order_item_class', 'order_item', $rp_decorator_item, $order ); -
do_action( 'woocommerce_order_item_meta_end', $rp_decorator_item_id, $rp_decorator_item, $order, $plain_text ); -
do_action( 'woocommerce_order_item_meta_start', $rp_decorator_item_id, $rp_decorator_item, $order, $plain_text ); -
woocommerce_order_item_name
filterapply_filters( 'woocommerce_order_item_name', $rp_decorator_item->get_name(), $rp_decorator_item, false ); -
apply_filters( 'woocommerce_order_item_thumbnail', $rp_decorator_image, $rp_decorator_item ); -
apply_filters( 'woocommerce_order_item_visible', true, $rp_decorator_item ); -
woocommerce_order_number
filterapply_filters( 'woocommerce_order_number', $this->id, $this ); -
apply_filters( 'wt_decorator_current_preview_id', $preview_id ); -
apply_filters( 'wt_decorator_email_template_type_order_status_array', self::$wt_supported_email_order_status ); -
apply_filters( 'wt_decorator_email_template_types', $types ); -
apply_filters( 'wt_decorator_email_type_class_name_array', self::$wt_supported_email_class_names ); -
apply_filters( 'wt_decorator_preview_email_object', $email ); -
apply_filters( 'wt_decorator_preview_order_ids_limit', 100 ); -
apply_filters( 'wt_decorator_preview_order_ids_sort_order', 'DESC' ); -
apply_filters( 'wt_decorator_supported_email_classes', $classes ); -
apply_filters( 'wt_decorator_wt_supported_email_type_status', $statuses ); -
apply_filters( 'wt_ema_load_cart_html_table_data', $load_cart_data ); -
apply_filters( 'wt_woomail_no_order_body_text', $body_text, $email ); -
wt_woomail_order_body_text
filterapply_filters( 'wt_woomail_order_body_text', $body_text, $order, $sent_to_admin, $plain_text, $email );
Generated from WebToffee eCommerce Marketing Automation'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: