Carbon Based Email Customizer for WooCommerce 1.0.0 has 7 actions and 27 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 Carbon Based Email Customizer for WooCommerce fires an action
add_action( 'cbswec_email_footer_blocks', function( $email ) {
// Your code runs here.
}, 10, 1 );
// Change a value Carbon Based Email Customizer for WooCommerce is about to use
add_filter( 'cbswec_preview_email_html', function( $html, $email, $order ) {
// Change $html here.
return $html;
}, 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
-
/** * Filter preview HTML while draft overrides are still active. */ apply_filters( 'cbswec_preview_email_html', $html, $email, $order ); -
/** * Filter the hub dashboard product catalog. */ apply_filters( 'cbshub_plugins_hub_catalog_products', $products ); -
/** * Filter dashboard card icon for a CBS plugin submenu. */ apply_filters( 'cbshub_plugins_hub_dashboard_card_icon', $icon, $page_slug ); -
cbshub_plugins_hub_settings_saved_message
filter Used by 6 plugins → Copy link Customise this hook/** * Filter the settings saved toast message on a CBS branded settings screen. */ apply_filters( 'cbshub_plugins_hub_settings_saved_message', $message, $screen['slug'] ); -
/** * Customer emails always listed in the customizer (no WooCommerce enable * toggle). */ apply_filters( 'cbswec_always_include_customer_email_ids', array( 'customer_invoice' ), $email ); -
/** * Filter downloads section placement for the current email render. */ apply_filters( 'cbswec_order_downloads_position', $value ); -
/** * Whether the downloads table includes the Expires column. */ apply_filters( 'cbswec_order_downloads_show_expires', $value ); -
/** * Prime extension-specific email state before render (e.g. CBSS renewal * placeholders). */ do_action( 'cbswec_prepare_preview_order_email', $email, $order ); -
/** * Order statuses to try when resolving the auto preview order (first match * wins). */ apply_filters( 'cbswec_preview_preferred_order_statuses', array( 'customer_completed_order' => array( 'completed' ), 'customer_processing_order' => array( 'processing' ), 'customer_on_hold_order' => array( 'on-hold' ), 'customer_refunded_order' => array( 'refunded' ), 'customer_invoice' => array( 'on-hold', 'pending', 'processing', 'completed' ), 'customer_note' => array(), 'customer_failed_order' => array( 'failed' ), 'customer_cancelled_order' => ar... ); -
/** * Filter sample download rows for dummy preview orders. */ apply_filters( 'cbswec_preview_sample_download_items', $downloads, $order ); -
/** * Whether sample preview orders should include downloadable product rows. */ apply_filters( 'cbswec_preview_sample_include_downloads', true, $order ); -
/** * Whether sample preview orders should include CBS license key rows. */ apply_filters( 'cbswec_preview_sample_include_licenses', true, $order ); -
/** * Filter sample license rows before they are stored on the preview order. */ apply_filters( 'cbswec_preview_sample_license_keys', $licenses, $order ); -
/** * Filter the sample order used when no real order matches the email type. */ apply_filters( 'cbswec_preview_sample_order', $order, $email_id ); -
/** * Primary customer email IDs and their display order in admin dropdowns. */ apply_filters( 'cbswec_primary_customer_email_ids', $ids ); -
/** * Email IDs whose intro paragraph is rendered by WooCommerce core templates. */ apply_filters( 'cbswec_wc_core_intro_email_ids', array( 'customer_note', 'customer_failed_order', 'customer_cancelled_order', 'customer_verify_email', 'customer_new_account', 'customer_reset_password', ), $email_id ); -
/** * WooCommerce core customer email IDs (excluding primary-tier ordering). */ apply_filters( 'cbswec_woocommerce_core_customer_email_ids', $ids ); -
/** * WooCommerce email preview dummy order filter (WC 9.6+). */ apply_filters( 'woocommerce_email_preview_dummy_order', $order, $email_id ); -
/** * Filter the dummy gift card object used in email previews. */ apply_filters( 'woocommerce_gift_card_email_preview_dummy_gift_card', $giftcard, $email_id ); -
/** * This filter is documented in templates/emails/email-styles.php */ apply_filters( 'woocommerce_is_email_preview', false ); -
apply_filters( 'woocommerce_prepare_email_for_preview', $email ); -
apply_filters( 'cbswec_additional_preview_email_ids', $default ); -
apply_filters( 'cbswec_preview_email_ids', self::default_preview_email_ids() ); -
apply_filters( 'cbswec_preview_include_disabled_emails', false ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
do_action( 'woocommerce_email_order_details', $order, $sent_to_admin, $plain_text, $email ); -
do_action( 'woocommerce_email_order_meta', $order, $sent_to_admin, $plain_text, $email ); -
apply_filters( 'woocommerce_mail_content', $content ); -
apply_filters( 'wooocommerce_gc_email_gift_card_custom_image_size', 'large', $product, $email ); -
apply_filters( 'wooocommerce_gc_email_gift_card_image_size', 'woocommerce_single', $product, $email );
Generated from Carbon Based Email Customizer for WooCommerce'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: