Automattic\WooCommerce\EmailEditor\Engine
Send_Preview_Email::set_mail_content_type
Sets the mail content type. Used by $this->send_email.
Метод класса: Send_Preview_Email{}
Хуков нет.
Возвращает
Строку
. The content type that was set.
Использование
$Send_Preview_Email = new Send_Preview_Email(); $Send_Preview_Email->set_mail_content_type( $content_type ): string;
- $content_type(строка) (обязательный)
- The content type to be set for the mail.
Код Send_Preview_Email::set_mail_content_type() Send Preview Email::set mail content type WC 10.0.2
public function set_mail_content_type( string $content_type ): string { // phpcs:ignore Generic.CodeAnalysis.UnusedFunctionParameter.Found return 'text/html'; }