Automattic\WooCommerce\Admin\Notes\MerchantEmailNotifications
NotificationEmail::trigger() public WC 1.0
Trigger the sending of this email.
{} Это метод класса: NotificationEmail{}
Хуков нет.
Возвращает
Null. Ничего.
Использование
$NotificationEmail = new NotificationEmail(); $NotificationEmail->trigger( $email );
- $email(строка) (обязательный)
- Email to send the note.
Код NotificationEmail::trigger() NotificationEmail::trigger WC 5.0.0
public function trigger( $email ) {
$this->recipient = $email;
$this->opened_tracking_url = sprintf(
'%1$s/wp-json/wc-analytics/admin/notes/tracker/%2$d',
site_url(),
$this->note->get_id()
);
$this->trigger_note_action_url = sprintf(
'%1$s&external_redirect=1¬e=%2$d&action=',
wc_admin_url(),
$this->note->get_id()
);
$this->send(
$this->get_recipient(),
$this->get_subject(),
$this->get_content(),
$this->get_headers(),
$this->get_attachments()
);
}