I am utilizing this to switch the e-mail that’s despatched to our shopper for his or her information, however I do not need the identical data exhibited to their buyer bill.
add_action( "woocommerce_email_order_details", "wc_get_transaction");
perform wc_get_transaction( $order ) {
echo '<span model="colour:#555;font-size:1.5em;">Transaction ID: '.get_post_meta( $order->id, "_transaction_id", true ).'</span>';
}
I attempted this:
if ( ! $sent_to_admin ) {
add_action( "woocommerce_email_order_details", "wc_get_transaction");
perform wc_get_transaction( $order ) {
echo '<span model="colour:#555;font-size:1.5em;">Transaction ID: '.get_post_meta( $order->id, "_transaction_id", true ).'</span>';
}
}
Does not work although. I am utilizing this in my features.php
How can I get this so it solely sends to the admin?