Код: Выделить всё
add_action('woocommerce_order_status_pending_to_cancelled', 'cancelled_send_an_email_notification', 10, 2 );
function cancelled_send_an_email_notification( $order_id, $order ){
// Getting all WC_emails objects
$email_notifications = WC()->mailer()->get_emails();
// Sending the email
$email_notifications['WC_Email_Cancelled_Order']->trigger( $order_id );
}

Есть ли у кого-нибудь решение этой проблемы?
Подробнее здесь: https://stackoverflow.com/questions/790 ... g-payments
Мобильная версия