Email Customizer 1.1.0 has 9 actions and 60 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 Email Customizer fires an action
add_action( 'wbem_before_render', function( $template_id, $ctx ) {
// Your code runs here.
}, 10, 2 );
// Change a value Email Customizer is about to use
add_filter( 'wbem_merge_tag_value', function( $value, $tag, $ctx ) {
// 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
-
/** * Fires before a custom template renders for a WooCommerce email. */ do_action( 'wbem_before_render', $template_id, $ctx ); -
/** * This filter is documented below. */ apply_filters( 'wbem_merge_tag_value', null, $tag, $ctx ); -
/** * This filter is documented in wp-includes/blocks.php */ apply_filters( 'pre_render_block', null, $inner_block->parsed_block, $parent_block ); -
/** * This filter is documented in wp-includes/blocks.php */ apply_filters( 'render_block_context', $inner_block->context, $inner_block->parsed_block, $parent_block ); -
/** * This filter is documented in wp-includes/blocks.php */ apply_filters( 'render_block_data', $inner_block->parsed_block, $source_block, $parent_block ); -
/** * Filter the account details rows. */ apply_filters( 'wbem_account_details_rows', $rows, $user, $ctx ); -
/** * Filter the address boxes. */ apply_filters( 'wbem_address_boxes', $boxes, $order, $ctx ); -
/** * Filters the register_block_type() args of a Webangon block (modules use it * for nesting: parent, allowed_blocks, provides_context, skip_inner_blocks * …). */ apply_filters( 'wbem_bc/block_type_args', $args, $block, $name ); -
/** * Whether the bundled Container block is registered. */ apply_filters( 'wbem_bc/bundled_blocks', true ); -
/** * Filter the data the editor script reads from window.wbemBC (e.g. a host * editor that hides the Global Kit by emptying 'kit'). */ apply_filters( 'wbem_bc/editor_data', [ 'blocks' => $schema, 'fonts' => Fonts::get_options(), 'kit' => Kit::instance()->get_public(), 'breakpoints' => CSS_Generator::breakpoints(), 'iconLibraries' => self::get_icon_libraries(), ] ); -
/** * A host that bundles the framework without a site-wide kit (no admin page, * REST routes or global.css) returns false. The data API (get(), * rename_vars()) keeps working on the defaults. */ apply_filters( 'wbem_bc/kit_enabled', true ); -
/** * Add or change shapes: [ key => [ 'title', 'image', 'path', 'has_flip', * 'has_negative', 'height_only' ] ]. 'path' is the absolute SVG path; * '-negative' is appended for the inverted variant. */ apply_filters( 'wbem_bc/shapes', $native ); -
/** * Filter block schemas. */ apply_filters( 'wbem_block_schemas', self::lib_schemas() ); -
/** * Filter the list of block directories. */ apply_filters( 'wbem_blocks_dirs', $dirs ? $dirs : array() ); -
/** * Filter built-in presets. */ apply_filters( 'wbem_builtin_presets', $out ); -
/** * Filter condition types. */ apply_filters( 'wbem_condition_types', $types ); -
/** * Filter whether a conditional block shows its content. */ apply_filters( 'wbem_conditional_visible', $show, $clean, $match, $ctx ); -
/** * Filter the customer details rows. */ apply_filters( 'wbem_customer_details_rows', $rows, $order, $ctx ); -
/** * Filter the text used when the customer has no first name. */ apply_filters( 'wbem_customer_first_name_fallback', __( 'Customer', 'webangon-email' ), $this ); -
/** * Filter the default intro copy. */ apply_filters( 'wbem_default_intro', $out, $email_id, $ctx ); -
/** * Filter the editor options payload. */ apply_filters( 'wbem_editor_options', $data ); -
/** * Short-circuit evaluation of a rule type. */ apply_filters( "wbem_evaluate_rule_{$type}", null, $rule, $ctx ); -
/** * Filter available fonts. */ apply_filters( 'wbem_fonts', $fonts ); -
/** * Fires after the plugin is fully loaded. */ do_action( 'wbem_loaded' ); -
/** * Filter the merge tag registry. */ apply_filters( 'wbem_merge_tags', $tags ); -
/** * Filter the preview mock order. */ apply_filters( 'wbem_mock_order', $order ); -
/** * Filter the downloads listed by the Downloads block. */ apply_filters( 'wbem_order_downloads', $downloads, $order, $ctx ); -
/** * Filter the thumbnail URL used by the Order Items block. */ apply_filters( 'wbem_order_item_image', $img_url, $item, $product ); -
/** * Filter the items listed by the Order Items block. */ apply_filters( 'wbem_order_items', $items, $order, $ctx ); -
/** * Filter the order summary rows. */ apply_filters( 'wbem_order_summary_rows', $rows, $order, $ctx ); -
/** * Filter the rows shown by the Order Totals block. */ apply_filters( 'wbem_order_totals_rows', $rows, $order, $ctx ); -
/** * Filter the products shown by the Products block. */ apply_filters( 'wbem_products', $wbem_products, $settings, $wbem_ctx ); -
/** * Filter the rendered document. */ apply_filters( 'wbem_rendered_html', $html, $template_id, $ctx ); -
/** * Filter the resolved template id. */ apply_filters( 'wbem_resolved_template', $found, $ctx ); -
/** * Filter the product shown by the Product spotlight block. */ apply_filters( 'wbem_spotlight_product', $spot, $settings ); -
/** * Filter the Storefront designs. */ apply_filters( 'wbem_store_designs', $designs ); -
/** * Filter template content before rendering. */ apply_filters( 'wbem_template_content', $content, $ctx ); -
/** * Filter the built-in WooCommerce email designs. */ apply_filters( 'wbem_wc_email_designs', $designs ); -
/** * Filter the built-in WordPress email designs. */ apply_filters( 'wbem_wp_email_designs', $designs ); -
/** * Filter the WordPress email catalogue. */ apply_filters( 'wbem_wp_emails', $list ); -
do_action( 'wbem_bc/page_templates/full_width/after_content' ); -
do_action( 'wbem_bc/page_templates/full_width/before_content' ); -
apply_filters( 'wbem_bc/query_args', $args, $settings, $prefix, $context ); -
apply_filters( 'wbem_bc/attribute_type', 'string', $type ); -
apply_filters( 'wbem_bc/block_css', $css, $block, $settings ); -
do_action( 'wbem_bc/block/controls_registered', $this ); -
apply_filters( 'wbem_bc/breakpoints', self::BREAKPOINTS, $block ); -
apply_filters( 'wbem_bc/container_animations', [ 'Fading' => [ 'fadeIn' => 'Fade In', 'fadeInDown' => 'Fade In Down', 'fadeInLeft' => 'Fade In Left', 'fadeInRight' => 'Fade In Right', 'fadeInUp' => 'Fade In Up', ], 'Zooming' => [ 'zoomIn' => 'Zoom In', 'zoomInDown' => 'Zoom In Down', 'zoomInLeft' => 'Zoom In Left', 'zoomInRight' => 'Zoom In Right', 'zoomInUp' => 'Zoom In Up', ], 'Bouncing' => [ 'bounceIn' => 'Bounce In', 'bounceInDown' => '... ); -
apply_filters( 'wbem_bc/container_defaults', $defaults ); -
apply_filters( 'wbem_bc/fonts', self::$index ); -
apply_filters( 'wbem_bc/global_typography', true, $this ); -
apply_filters( "wbem_bc/group_control/{$type}", [], $args ); -
apply_filters( 'wbem_bc/icon_libraries', $libraries ); -
apply_filters( 'wbem_bc/kit_css', $css, $kit ); -
do_action( 'wbem_bc/kit_saved', $this->kit ); -
apply_filters( 'wbem_bc/local_google_fonts', true ); -
apply_filters( 'wbem_bc/modules', [ 'editor-overlay', 'page-templates', 'nested-elements' ] ); -
apply_filters( 'wbem_bc/page_templates', [ self::CANVAS => [ 'label' => __( 'Webangon Canvas', 'webangon-email' ), 'file' => 'canvas.php', 'body_class' => 'wbembc-template-canvas', ], self::FULL_WIDTH => [ 'label' => __( 'Webangon Full Width', 'webangon-email' ), 'file' => 'full-width.php', 'body_class' => 'wbembc-template-full-width', ], ] ); -
do_action( 'wbem_bc/page_templates/canvas/after_content' ); -
do_action( 'wbem_bc/page_templates/canvas/before_content' ); -
apply_filters( 'wbem_bc/page_templates/post_types', $post_types ); -
apply_filters( 'wbem_bc/page_templates/template_path', $path, $file ); -
apply_filters( "wbem_bc/query_options/{$kind}", [], $request ); -
do_action( 'wbem_bc/register_blocks', $this ); -
apply_filters( 'wbem_spotlight_low_stock', max( 1, (int) get_option( 'woocommerce_notify_low_stock_amount', 2 ) ) * 5 ); -
apply_filters( 'woocommerce_email_order_item_quantity', $qty_html, $item ); -
apply_filters( 'woocommerce_order_is_paid_statuses', [ 'processing', 'completed' ] ); -
apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ); -
apply_filters( 'woocommerce_order_item_visible', true, $item );
Generated from Email Customizer'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: