Automattic\WooCommerce\Internal\StockNotifications\Emails
EmailManager::send_verify_email
Send the double opt-in verification email for a stock notification.
Method of the class: EmailManager{}
No Hooks.
Returns
null. Nothing (null).
Usage
$EmailManager = new EmailManager(); $EmailManager->send_verify_email( $notification );
- $notification(Notification) (required)
- The notification object.
EmailManager::send_verify_email() EmailManager::send verify email code WC 10.9.4
public function send_verify_email( Notification $notification ) {
$emails = WC()->mailer()->get_emails();
$email = $emails['WC_Email_Customer_Stock_Notification_Verify'] ?? null;
if ( $email instanceof CustomerStockNotificationVerifyEmail ) {
$email->trigger( $notification );
}
}