• 0
Votes
name

A PHP Error was encountered

Severity: Notice

Message: Undefined index: userid

Filename: views/question.php

Line Number: 191

Backtrace:

File: /var/www/html/cnasolution/site/application/views/question.php
Line: 191
Function: _error_handler

File: /var/www/html/cnasolution/site/application/controllers/Questions.php
Line: 419
Function: view

File: /var/www/html/cnasolution/site/index.php
Line: 315
Function: require_once

Woocommerce can send automated e-mails to admins when product stock status changes to 'outofstock'.

I would like to know which hook is fired when this happens so I can hook into it and store the time and date of this event in corresponding product meta.

I am not asking for step by step guide how to code this functionality, I am just looking for the right action to hook into.

Download script demo [LINK] [Origin]
Download script demo [LINK 2] [Onedrive] Download script demo [LINK 2] [Google drive]