Description
This action is executed before the checkout sends the message to the merchant
Parameters
- $to
- (Text) Message To.
- $subject
- (Text) Message Subject.
- $message_to_merchant
- (Text) Message.
- $headers
- (Text) Message Header.
- $order_id
- (Number) Identifier of the Order.
Example
<?php function my_tcp_send_order_mail_to_merchant_message( $to, $subject, $message_to_merchant, $headers, $order_id ) { wp_mail( 'my_email.@my_email.com', $subject, $message_to_merchant , $headers ); } add_action( 'tcp_send_order_mail_to_merchant_message', 'my_tcp_send_order_mail_to_merchant_message', 10, 5 ); ?>
Change Log
Since 1.1.8