Title: Repeat notifications
Last modified: August 3, 2023

---

# Repeat notifications

 *  Resolved [sgreen35](https://wordpress.org/support/users/sgreen35/)
 * (@sgreen35)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/repeat-notifications-3/)
 * Do subscribers have to re register every time a product goes back out of stock?
   Or while ever they are subscribers they will be emailed each time its back in
   stock?

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [CodeWooGeek Support](https://wordpress.org/support/users/codewoogeeksupport/)
 * (@codewoogeeksupport)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/repeat-notifications-3/#post-16946187)
 * Hello there,
 * Good Day!!
 * We’re here to assist you.
 * We would like to inform you that, as of now, subscribers are required to resubscribe
   to the same product each time it goes out of stock if they wish to receive an
   in-stock notification when it becomes available again in order to ensure sending
   notifications only to those who are actively interested in the product at the
   time it comes back in stock.
 * Thanks.
 *  Thread Starter [sgreen35](https://wordpress.org/support/users/sgreen35/)
 * (@sgreen35)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/repeat-notifications-3/#post-16950567)
 * Is this something that could be changed, as subscribers can easily ‘unsubscribe’
   when they have or don’t need any more supplies, where as having to re-subscribe
   each time the item goes out of stock again is a bit annoying for them, and something
   most people wont think to do.
   I have a high demand product with many subscribes,
   and only small quantities available at a time
 *  Plugin Author [CodeWooGeek](https://wordpress.org/support/users/codewoogeek/)
 * (@codewoogeek)
 * [2 years, 9 months ago](https://wordpress.org/support/topic/repeat-notifications-3/#post-16950815)
 * Hello there,
 * We’re sorry for your inconvenience. Our plugin is not intended to send emails
   continuously, but it has the flexibility to keep informing subscribers about 
   products that are back in stock. We shared the below code, which does the trick.
 * Please put the below code either in theme `functions.php` or child theme `functions.
   php` and check it out.
 *     ```wp-block-code
       function cwg_instock_change_post_status($new, $old, $post) {
           $post_type = $post->post_type;
           if ('cwginstocknotifier' == $post_type) {
               if ($new == 'cwg_mailsent' && $old == 'cwg_subscribed') {
                   $obj = new CWG_Instock_API();
                   $obj->subscriber_subscribed($post->ID);
               }
           }
       }
   
       add_action('transition_post_status', 'cwg_instock_change_post_status', 10, 3);
       ```
   
 * Let us know.
 * Thanks.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘Repeat notifications’ is closed to new replies.

 * ![](https://ps.w.org/back-in-stock-notifier-for-woocommerce/assets/icon-256x256.
   gif?rev=3349374)
 * [Back In Stock Notifier for WooCommerce | WooCommerce Waitlist Pro](https://wordpress.org/plugins/back-in-stock-notifier-for-woocommerce/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/back-in-stock-notifier-for-woocommerce/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/)
 * [Active Topics](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/back-in-stock-notifier-for-woocommerce/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [CodeWooGeek](https://wordpress.org/support/users/codewoogeek/)
 * Last activity: [2 years, 9 months ago](https://wordpress.org/support/topic/repeat-notifications-3/#post-16950815)
 * Status: resolved