| 开发者 | 7thskysoftware |
|---|---|
| 更新时间 | 2026年11月19日 23:11 |
| 捐献地址: | 去捐款 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
{username}, {email}, {sitename}, {password_reset_link}, and more.Yes. Notifications → Custom Emails supports per-notification subjects; leave a subject blank to retain the original. WooCommerce subjects are configured under Notifications → WooCommerce Emails. Subjects support text placeholders, with order-number and total placeholders available for WooCommerce order emails. Recovery links and full message content belong in bodies.
Use {password_reset_link} in your welcome or password-reset body. A working link is appended if the placeholder is omitted. Preview and test tools use fictional links and never generate real password keys.
Settings and log tables are isolated per site, including when another plugin switches the current site. Storage is upgraded lazily for each site, so network activation does not create all tables at once. Deactivation clears maintenance schedules and deletion removes plugin data across the network in batches. Network administrators can enforce per-notification blocks under Network Admin → Settings → Notification policies. Blocks are scoped to the current network and take precedence over local switches. Network signup/activation messages and manual-action-required core notices remain outside these blocks; full network signup compatibility is not claimed.
Open a body on Custom Emails and choose Preview or Send sample to my email. These use the current editor content, including unsaved edits, and fictional account data. Blank bodies show an illustrative default rather than an exact copy of every WordPress message. Tests go only to the signed-in administrator profile address, at most once per minute. Mailer acceptance does not guarantee delivery.
It clears the custom body in the editor. Save Changes to persist the reset; leaving without saving retains the saved body. An empty role selection allows all roles. Sending switches take precedence over templates and role selections.
Logging settings lets you stop new decision records or retain them for 1–365 days (30 by default). Turning logging off does not immediately delete existing records. Daily WordPress cron removes expired rows in batches; low-traffic sites may run cleanup late, and sites disabling WP-Cron need a server cron job. Existing option-based logs migrate to an indexed per-site table with retry protection. The legacy option is deleted only after a successful import. Only compact event metadata is retained, not message bodies, reset keys, recipient addresses or full update results.
Requires WordPress 6.1+ and PHP 7.4+. The minimum follows the core registration send-decision filters. The plugin preserves incoming recipients, subjects and unrelated headers unless an explicit subject or administrator-recipient override is configured. Custom SMTP/routing plugins can still alter delivery. WooCommerce Emails discovers the active email registry. Custom bodies cover the 11 classic core account/order email types; extension emails and WooCommerce block-editor emails retain native bodies unless a compatible classic-section adapter explicitly opts in. Newer core types outside that set also show subject/control-only capability. Object methods supply order context, without assuming posts-based order storage. WooCommerce-native layouts are preserved. PHP syntax and automated regression checks do not constitute certification of every WordPress, WooCommerce, SMTP, PHP or multisite combination.
Branding & policies offers an optional shared heading, accent and footer for managed WordPress emails. WooCommerce retains its native layout. Plain-text alternatives are generated for tracked HTML messages through the WordPress PHPMailer pipeline, preserve link URLs, and do not replace an existing alternative. API mail plugins may handle multipart messages themselves. The last five previous subject/body versions of each core template and five structured versions per WooCommerce email (up to 50 email types) are stored without autoloading. WooCommerce custom HTML messages receive an alternative generated from the final customized body so native multipart text cannot contradict it. Load a revision into the editor, review it, then Save Changes to apply it.
Allowed/customized are policy decisions. Mailer accepted means the WordPress mailer processed the send without reporting an error, not that a recipient received it. Mailer failed means the mailer reported failure. Handled by another mail plugin means an API/SMTP plugin short-circuited WordPress sending; its final delivery status is unavailable here. Only messages identified as managed notifications are tracked. Raw error text, bodies, recipient addresses and reset keys are not retained in logs. The internal per-message trace header is removed before PHPMailer transport.
Branding & policies allows up to ten To addresses for each administrator alert. Blank retains existing recipients, and an empty/suppressed recipient list is not recreated. Customer and account-recovery emails cannot be rerouted. Tools exports/imports schema-validated local configuration JSON, excluding logs, revisions and network policies. Exports can contain routing addresses and authored template content; treat them as private configuration. Invalid schemas, unknown settings, field types and invalid lists/maps are rejected before settings change. Imports sanitize content and retain changed templates as revisions.
Tools evaluates saved site/network switches, role restrictions, WooCommerce controls and update-result settings without sending mail. Role checks accept any matching role for a multi-role user. Branding & policies independently controls successful, failed/partly failed, and critical core update results. Failure and critical types are enabled by default. The existing General master switch and network blocks still take precedence; manual-action-required core notices remain enabled.
Open Notifications → WooCommerce Emails. Choose Custom text to edit the heading, introduction, closing and footer while automatically retaining native order/download/customer sections and required account/payment links. Advanced body allows HTML and dynamic blocks inside WooCommerce's native header/footer. Required blocks are checked on save; missing native sections or account keys at send time retain the original message and record a fallback. Default keeps native content; Disabled blocks this email through the native enabled/recipient gates. Restoring defaults clears the subject and body configuration in the editor; Save Changes applies it. Selecting a mode replaces earlier local Woo sending switches for that email; network blocks still win. WooCommerce's own disabled setting stays effective. Body values are escaped and token substitution runs once. Order data uses object getters, including HPOS orders. Account links reuse the original generated key; customization never generates another key. Emails continue through WooCommerce's existing trigger and mail callback, preserving recipients, headers and attachments. Theme templates must emit the standard WooCommerce header/footer and transactional section actions; otherwise the original message is retained. Custom text/body modes replace native introductory/additional prose, so include any store-specific instructions or legal text in your custom copy. They do not copy arbitrary PHP templates into an editor.
Up to 50 non-default WooCommerce configurations are stored in a separate non-autoloaded option. UTF-8 byte limits are heading 200, introduction/closing 5,000 each, footer 2,000 and advanced body 20,000. Configuration imports allow up to 3 MB. Histories keep five previous configurations for up to 50 recently changed Woo email types. Missing providers retain saved settings; inactive configurations are listed separately. Detection observes WooCommerce's lazy registry, avoiding mailer initialization on ordinary frontend requests.
Extension adapters may filter senm7s_woo_body_capability with a supported profile (order, invoice, note, account, reset) only after verifying their classic section actions and required account/order context. This opt-in does not supply an arbitrary renderer: missing sections still fall back. Block-editor bodies require a dedicated future integration and remain native. Mail callback replacements, theme overrides and other email designers require staging verification. Previews are illustrative, side-effect-free samples, not exact screenshots of the final WooCommerce theme. See tests/STAGING-CHECKLIST.md before enabling custom bodies on a store.