Refund email notification hook
-
Hi,
I want to send shipping label to customers that refunded their order so that they dont have to pay to get their order back to me.To do so, I created a field called Return Label and assigned it to Post type – Order.(it is a pdf import)
Now it display well in every single order page in woocommerce admin.
My problem is that i am not able to include the uploaded pdf into the refunded notification email. I have only been able to send it trought the order completion email using this function:
//add return shipping label into refunded page add_action ('woocommerce_email_before_order_table', 'acf_returnlabel', 20); function acf_returnlabel( $order ) { if (get_field('return_label', $order->get_id())) { // Only show if field is filled ?> <?php the_field('return_label', $order->get_id()); ?> <?php } }What would be the right hook ?
I only found woocommerce_email_heading_customer_refunded_order and woocommerce_email_subject_customer_refunded_order
Is there an existing hook that would alow me to include content into the refunded email notification?
The topic ‘Refund email notification hook’ is closed to new replies.