| 开发者 | jonashjalmarsson |
|---|---|
| 更新时间 | 2026年5月4日 21:12 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 6.9 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
a@example.com, b@example.com).jalma-category-notifications-for-woocommerce text domain). Swedish (sv_SE) included./wp-content/plugins/, or install via the Plugins → Add New screen in WordPress.No. The store-wide WooCommerce notification still goes out as normal. This plugin adds extra recipients on top of that, filtered by category.
All matching rules fire. Each rule's email addresses receive one notification per stock event. Duplicate addresses across rules are de-duplicated, so each recipient only gets one mail per product per event.
Yes. Each rule has an optional "Exclude categories" field where you can pick one or more categories to skip. This is useful when you want a parent-category rule to cover most of its branch but skip specific sub-categories that are handled by a different recipient. The exclusion is hierarchical too — excluding a category also covers its descendants.
Yes. The "Product category" field is a multi-select. One rule can include several categories, share the same email recipients, and share the same exclude list — useful for grouping several product lines under one supplier.
Yes. The plugin walks the full category tree. A rule on a parent category automatically covers all its descendants, regardless of how deep the hierarchy goes.
Yes. When a variation triggers a low-stock or out-of-stock event, the plugin uses the parent product's categories to match against your rules. This means you only configure categories on the parent product, as you normally would in WooCommerce.
No. A recipient only gets emails for products in categories that match their rule. If you want a recipient to get notifications for the whole store, just add a rule on a top-level category that contains everything.
Through WordPress's standard wp_mail() function. If you have an SMTP plugin (such as WP Mail SMTP, Post SMTP, FluentSMTP), it will be used automatically.
The configured email addresses are stored in the WordPress options table (jcnwc_rules). No customer data is collected. No external services are contacted. No telemetry.
Yes. Use the jalma-category-notifications-for-woocommerce text domain. Swedish (sv_SE) is included. Pull requests for more translations are welcome.
jcnwc_render_rule_header_before_emails fires inside a <th> cell before the emails column, and jcnwc_render_rule_field_before_emails fires inside the matching per-row <td> cell. The column is only rendered when at least one handler is attached, so the table layout stays clean for end users without add-ons.jcnwc_render_after_heading on the settings page so add-on plugins can render a tab nav or upgrade banner between the heading and the rules form. No visible changes for end users.jalma-category-notifications-for-woocommerce for wp.org compliance.jwccn_rules, jwcem_rules) on first activation.jcnwc_rules, jcnwc_should_notify, jcnwc_rule_recipients, jcnwc_notification_subject, jcnwc_notification_message, jcnwc_notification_headers, jcnwc_sanitize_rule. Actions: jcnwc_render_rule_extras, jcnwc_after_notification_sent. No visible changes for end users.