Automattic\WooCommerce\Internal\StockNotifications\Emails
EmailManager::send_verified_email
Send the sign-up confirmation email for a stock notification.
Метод класса: EmailManager{}
Хуков нет.
Возвращает
void. Ничего (null).
Использование
$EmailManager = new EmailManager(); $EmailManager->send_verified_email( $notification );
- $notification(Notification) (обязательный)
- The notification object.
Код EmailManager::send_verified_email() EmailManager::send verified email WC 11.2.2
public function send_verified_email( Notification $notification ) {
$emails = WC()->mailer()->get_emails();
$email = $emails['WC_Email_Customer_Stock_Notification_Verified'] ?? null;
if ( $email instanceof CustomerStockNotificationVerifiedEmail ) {
$email->trigger( $notification );
}
}