Automattic\WooCommerce\Internal\StockNotifications\Emails
EmailManager::send_stock_notification_email
Send a stock notification email.
Method of the class: EmailManager{}
No Hooks.
Returns
null. Nothing (null).
Usage
$EmailManager = new EmailManager(); $EmailManager->send_stock_notification_email( $notification );
- $notification(Notification) (required)
- The notification object.
EmailManager::send_stock_notification_email() EmailManager::send stock notification email code WC 10.3.6
public function send_stock_notification_email( Notification $notification ) {
$emails = WC()->mailer()->get_emails();
if ( isset( $emails['WC_Email_Customer_Stock_Notification'] ) ) {
$emails['WC_Email_Customer_Stock_Notification']->trigger( $notification );
}
}