Skip to content

Latest commit

 

History

History
49 lines (39 loc) · 1.08 KB

mail_charset.rst

File metadata and controls

49 lines (39 loc) · 1.08 KB

fast_events_mail_charset

This filter is called when an email is sent. Change the character set used in the email. This filter is only used by the SMTP mailer.

<?php
function your_filter_mail_charset( $charset, $order_id, $payment_status, $event_id, $name, $email ) {
  // Do your manipulation here
  return $charset;
}

add_filter( 'fast_events_mail_charset', 'your_filter_mail_charset', 10, 6 );

Parameters

$charset

(string) The default is the character set used by the WordPress installation.

$order_id

(int) Unique id of the order.

$payment_status

(string) The payment status of the order.

$event_id

(int) Unique id of the event.

$name

(string) The name of the person placing the order.

$email

(string) The email address of the person placing the order.


Return

(string) Character set.


Changelog

Version Description
2.1.0 Introduced.