I have several product imports that run at a set time. Right now notifications get sent as soon as the product is marked available. My problem is that one product update sets the stock back in stock and it send a notification of it being in stock. Before my other product import updates can subtract the orders that are waiting to be filled. So the customer gets the notification only to find out they are sold out again. I would like to be able to have a set time that your plug in runs so I can schedule my updates to be completed before it sent out the emails. Thank you.
Open
Last updated: July 8, 2025
Log in to comment on this feature request.
Downloaded plug in copied code got a “Could not create snippet. Request failed with status code 500.” error
Thank you I’ll try that later today. But it would be nice to be able to set a scheduled time.
Thanks for following up! Happy to clarify further!
When the background process for sending notifications runs, it always checks if the product is still eligible (in-stock or on backorder) before actually sending the notifications. That said, it’s ultimately best to experiment with a delay that ensures the updates/imports will be finished by the time this runs.
Thank you but wouldn’t that just delay the notifications being sent. I need it to run after all my updates have been done then send notifications. With the options you suggested would it go back and check stock again or just delay the notification?
Thanks for the report! If you want more time for internal updates before notifications, you can add a delay with a PHP hook. By default, notifications are sent one minute after restocking. Increasing the delay gives more time for updates. Here’s an example for a one-hour delay:
add_filter( ‘woocommerce_bis_first_batch_delay’, function( $delay ) {
return HOUR_IN_SECONDS;
} );
Hope this helps! If you are not sure how to install snippets like this, you may use a free plugin like Code Snippets: https://wordpress.org/plugins/code-snippets/