1 回答

TA贡献1862条经验 获得超6个赞
function send_customer_purchase_notification_ready( $payment_id, $new_status ) {
$order_status = rpress_get_option( $new_status );
if ( !empty( $payment_id ) && $new_status !== 'pending' && $new_status == 'ready' ) {
$message = 'Order is ready';
$to = 'harshitvaishnav612@gmail.com';
$subject = "Order is ready";
$headers = '';
//Here put your Validation and send mail
$sent = wp_mail($to, $subject, strip_tags($message), $headers);
}
}
add_action( 'rpress_update_order_status', 'send_customer_purchase_notification_ready' , 10, 2 );
- 1 回答
- 0 关注
- 88 浏览
添加回答
举报