Kramar 1.0.6 has 11 actions and 40 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 Kramar fires an action
add_action( 'kramar_email_builder_after_subject', function( $email_id, $arg2 ) {
// Your code runs here.
}, 10, 2 );
// Change a value Kramar is about to use
add_filter( 'kramar_email_default_blocks', function( $blocks, $email_id, $context ) {
// Change $blocks here.
return $blocks;
}, 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
-
/** * Blocks a module contributes to an email's default template. */ apply_filters( 'kramar_email_default_blocks', $blocks, $email_id, $context ); -
/** * Allow short-circuiting a send. Return false to skip. */ apply_filters( 'kramar_email_should_send', true, $this->id, $order ); -
/** * Filters the client IP Kramar uses for rate limiting and evidence. */ apply_filters( 'kramar_client_ip', $ip, $remote ); -
/** * Filter the delivery-time markup before it is printed. */ apply_filters( 'kramar_delivery_time_html', $html, $label, $product ); -
/** * Filter the resolved delivery-time label for a product. */ apply_filters( 'kramar_delivery_time_label', $label, $product_id ); -
/** * Filter the filename of a generated PDF document. */ apply_filters( 'kramar_document_filename', $name . '.pdf', $type, $order, $number ); -
/** * Fires after the subject field in the email builder, letting modules add * per-email settings (e.g. PDF Invoices attachment checkboxes). */ do_action( 'kramar_email_builder_after_subject', $email_id, $this->get_email_context( $email_id ) ); -
/** * Content blocks a module supplies as the live default for one of its emails. * Defaults belong in code so future improvements remain visible; persisting * them in the overrides option silently freezes the layout. */ apply_filters( 'kramar_email_default_content_blocks', $content_blocks, $email_id, $context ); -
/** * Filter data-context merge values (Back-in-Stock, Abandoned Cart, etc). */ apply_filters( 'kramar_email_merge_field_values_data', $replacements, $context ); -
/** * Taxonomies consulted for a product's brand, in order. */ apply_filters( 'kramar_gsf_brand_taxonomies', [ 'product_brand', 'pwb-brand', 'yith_product_brand', 'berocket_brand' ] ); -
/** * Variation attribute keys checked for g:color, deepest-known first. Includes * the Dutch pa_kleur/kleur — a required apparel field that was silently * dropped on Dutch shops (only pa_maat was accepted for size, with no colour * equivalent). */ apply_filters( 'kramar_gsf_color_attributes', [ 'attribute_pa_color', 'attribute_color', 'attribute_pa_colour', 'attribute_colour', 'attribute_pa_kleur', 'attribute_kleur' ] ); -
/** * The complete field map for one feed item, before XML output. */ apply_filters( 'kramar_gsf_item', $data, $product ); -
/** * The resolved brand for a feed item. Return '' for no brand. */ apply_filters( 'kramar_gsf_product_brand', $brand, $product ); -
/** * Variation attribute keys checked for g:size. */ apply_filters( 'kramar_gsf_size_attributes', [ 'attribute_pa_size', 'attribute_size', 'attribute_pa_maat', 'attribute_maat' ] ); -
/** * Whether this email may issue a new invoice number for the order. */ apply_filters( 'kramar_invoice_issue_from_email', $allowed, $order, $email_ids ); -
/** * How long an emailed invoice download link stays usable, in seconds. */ apply_filters( 'kramar_invoice_link_lifetime', 90 * DAY_IN_SECONDS, $order, $type ); -
/** * The lowest sequential number the next invoice or credit note may carry. */ apply_filters( 'kramar_invoice_number_floor', $floor, $settings ); -
/** * Days of Omnibus log to keep. Minimum 31 (the 30-day rule plus a day). */ apply_filters( 'kramar_omnibus_log_retention_days', self::LOG_RETENTION_DAYS ); -
/** * Filters how long (seconds) a paused one-off job may be overdue and still be * re-queued on reactivation. Older jobs are dropped. */ apply_filters( 'kramar_paused_action_max_age', self::PAUSED_ACTION_MAX_AGE ); -
/** * WC Admin features Kramar removes as "admin bloat". */ apply_filters( 'kramar_stripped_admin_features', $remove ); -
/** * Suppress the automatic link for this render. */ apply_filters( 'kramar_suppress_withdrawal_link', false ); -
/** * Filters the proxies whose forwarding headers Kramar believes. */ apply_filters( 'kramar_trusted_proxies', $list, $remote ); -
/** * Emails that carry the withdrawal link. */ apply_filters( 'kramar_withdrawal_link_emails', [ 'customer_processing_order', 'customer_on_hold_order', 'customer_completed_order' ], $order ); -
/** * When the 14-day withdrawal period starts for this order. */ apply_filters( 'kramar_withdrawal_period_start', $order->get_date_completed(), $order ); -
/** * Public holidays on which a withdrawal period cannot end. */ apply_filters( 'kramar_withdrawal_public_holidays', [], $order ); -
/** * Where an order stands for the withdrawal flow. */ apply_filters( 'kramar_withdrawal_state', $state, $order ); -
/** * This filter is documented in woocommerce/includes/class-wc-emails.php */ apply_filters( 'woocommerce_email_downloads_columns', [ 'download-product' => __( 'Product', 'kramar' ), 'download-expires' => __( 'Expires', 'kramar' ), 'download-file' => __( 'Download', 'kramar' ), ], $order ); -
do_action( 'litespeed_control_set_nocache', 'kramar unsubscribe page' ); -
apply_filters( 'kramar_doing_status_move', false ); -
apply_filters( 'kramar_email_recipient', $this->get_recipient(), $this->id, $order ); -
do_action( 'woocommerce_email_customer_details', $order, $sent_to_admin, $plain_text, $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( 'kramar_email_cancel_statuses', [ 'cancelled', 'refunded', 'failed' ] ); -
apply_filters( 'kramar_email_merge_field_values', $replacements, $order ); -
apply_filters( 'kramar_email_merge_field_values_user', $replacements, $user ); -
apply_filters( 'kramar_email_merge_fields', $fields, $context ); -
apply_filters( 'kramar_is_test_send', false ); -
apply_filters( 'kramar_swatch_term_limit', 50 ); -
apply_filters( 'kramar_withdrawal_period_days', 14, $order ); -
woocommerce_email_customer_address_section
action Used by 6 plugins → Copy link Customise this hookdo_action( 'woocommerce_email_customer_address_section', $type, $order, $sent_to_admin, false ); -
do_action( "woocommerce_email_downloads_column_{$column_id}", $download, false ); -
do_action( 'woocommerce_email_header', $email_heading, $email ); -
apply_filters( 'woocommerce_email_order_item_quantity', $qty_display, $item ); -
do_action( 'woocommerce_order_item_meta_end', $item_id, $item, $order, false ); -
do_action( 'woocommerce_order_item_meta_start', $item_id, $item, $order, false ); -
apply_filters( 'woocommerce_order_item_name', $item->get_name(), $item, false ); -
apply_filters( 'woocommerce_order_item_visible', true, $item ); -
apply_filters( 'woocommerce_product_attribute_term_name', $selected_term->name, $selected_term );
Generated from Kramar'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: