Email Health Check & Log for WooCommerce 1.11.0 has 2 actions and 18 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 Health Check & Log for WooCommerce fires an action
add_action( 'ecehc_checks_completed', function( $results ) {
// Your code runs here.
}, 10, 1 );
// Change a value Email Health Check & Log for WooCommerce is about to use
add_filter( 'ecehc_log_retention_days', function( $value ) {
// Change $value here.
return $value;
}, 10, 1 );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
-
/** * This filter is documented in includes/Log/EmailLog.php */ apply_filters( 'ecehc_log_retention_days', LogSettings::retention_days() ); -
/** * Filters the number of failed emails in 24 hours that triggers the alert. */ apply_filters( 'ecehc_alert_min_failures', 3 ); -
/** * Filters the failure rate (percent of emails in 24 hours) that triggers the * alert. */ apply_filters( 'ecehc_alert_min_rate', 10 ); -
/** * Filters the list of diagnostic checks. */ apply_filters( 'ecehc_checks', $checks ); -
/** * Fires after every run of the full set of checks: the Health Report (also its * background request), `wp ehc check` and the Site Health test. */ do_action( 'ecehc_checks_completed', $results ); -
/** * Filters the detected DNS provider, to correct or add one. */ apply_filters( 'ecehc_detected_dns_provider', $match, $domain ); -
/** * Filters the detected hosting provider, to correct or add one. */ apply_filters( 'ecehc_detected_host', $host ); -
/** * Filters the DKIM selectors that are tried. */ apply_filters( 'ecehc_dkim_selectors', $selectors ); -
/** * Filters the DNS blacklist zones that are queried (zone => name). Only add * lists whose terms allow queries from any site. */ apply_filters( 'ecehc_dnsbl_zones', array( 'dnsbl.dronebl.org' => 'DroneBL', 'psbl.surriel.com' => 'PSBL', ) ); -
/** * Fires after an email was logged. */ do_action( 'ecehc_email_logged', $row ); -
/** * Filters whether emails are logged. */ apply_filters( 'ecehc_enable_email_log', version_compare( get_bloginfo( 'version' ), '5.9', '>=' ) ); -
/** * Filters the public mailbox domains that cannot be authenticated by a site * owner. */ apply_filters( 'ecehc_free_mailbox_domains', $free ); -
/** * Filters the maximum number of log rows kept. */ apply_filters( 'ecehc_log_max_rows', 5000 ); -
/** * Filters a log row before it is written. */ apply_filters( 'ecehc_log_row', array_merge( $defaults, $row ) ); -
/** * Filters the detected mail provider. */ apply_filters( 'ecehc_mail_provider', $provider ); -
/** * Filters how many old unpaid orders (and at least as many as orders that went * through) trigger the warning. */ apply_filters( 'ecehc_pending_orders_minimum', 5 ); -
/** * Filters the IPv4 address that is looked up, for servers whose outgoing mail * address differs from the web server's. */ apply_filters( 'ecehc_server_ip', $ip ); -
/** * Filters whether plain text guide links are shown in the "How to fix this" * panel. */ apply_filters( 'ecehc_show_guide_links', true ); -
/** * Filters whether the plain text link to the Pro waiting list is shown. */ apply_filters( 'ecehc_show_pro_link', true ); -
apply_filters( 'wp_mail_from', $from );
Generated from Email Health Check & Log 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: