WC_Emails::send() public WC 1.0
Send the email.
{} Это метод класса: WC_Emails{}
Хуков нет.
Возвращает
true/false.
Использование
$WC_Emails = new WC_Emails(); $WC_Emails->send( $to, $subject, $message, $headers, $attachments );
- $to(разное) (обязательный)
- Receiver.
- $subject(разное) (обязательный)
- Email subject.
- $message(разное) (обязательный)
- Message.
- $headers(строка)
- Email headers (default: "Content-Type: text/html\r\n").
- $attachments(строка)
- Attachments (default: "").
Код WC_Emails::send() WC Emails::send WC 5.0.0
public function send( $to, $subject, $message, $headers = "Content-Type: text/html\r\n", $attachments = '' ) {
// Send.
$email = new WC_Email();
return $email->send( $to, $subject, $message, $headers, $attachments );
}