Automattic\WooCommerce\Internal\StockNotifications\Emails

EmailManager::send_stock_notification_email │ public │ WC 1.0

Send a stock notification email.

Метод класса: EmailManager{}

Хуков нет.

Возвращает

void. Ничего (null).

Использование

$EmailManager = new EmailManager();
$EmailManager->send_stock_notification_email( $notification );
$notification(Notification) (обязательный)
The notification object.

Код EmailManager::send_stock_notification_email() WC 11.2.2

public function send_stock_notification_email( Notification $notification ) {
	$emails = WC()->mailer()->get_emails();
	$email  = $emails['WC_Email_Customer_Stock_Notification'] ?? null;

	if ( $email instanceof CustomerStockNotificationEmail ) {
		$email->trigger( $notification );
	}
}