| 开发者 | gatemi |
|---|---|
| 更新时间 | 2026年11月6日 16:56 |
| PHP版本: | 7.4 及以上 |
| WordPress版本: | 7.1 |
| 版权: | GPLv2 or later |
| 版权网址: | 版权信息 |
UNIQUE (product_id, email) index rather than a check a double tap can lose, and every send is claimed first — one statement that both selects the row and marks it sent, so a stock change that fires twice (and WooCommerce's stock hooks do) sends one email.
Nothing is sent inside your stock update. WooCommerce announces a restock in the request that saved the product — often an import or a bulk edit — and mailing two hundred people there is how "set stock to 40" becomes a timeout. Each change queues a sweep, which re-reads stock so nobody is sent to a page where the last unit has already gone.
What's in the full edition
Gatemi Back in Stock for WooCommerce is a separate plugin, sold on gatemi.com, that adds a demand report — what people are waiting for, most-waited-for first, which is a list of things to reorder — your own button text, subject and message, a batch size of your own, and a waitlist on some products rather than every out-of-stock one. Both editions keep the waitlist in the same table, so upgrading loses nobody.
In its own table in your database. Nothing is sent anywhere else — the
emails are sent by your site, with wp_mail().
It is deleted, unless the full edition is or has been set up on the site — in which case the waitlist is the full edition's and stays.