Plugin Contributor
Mohamad
(@mohamadntr)
Hi @katmacau,
Please add this code snippet to your website:
/**
* WP Overnight - PDF Invoices & Packing Slips for WooCommerce
* Add the order status to the order data section of the document.
*
* @param $document_type
* @param $order
*
* @return void
*/
function wpo_order_status_after_order_data( $document_type, $order ) {
echo '<tr class="order-status">
<th>Order Status</th>
<td>', $order->get_status(), '</td>
</tr>';
}add_action( 'wpo_wcpdf_after_order_data', 'wpo_order_status_after_order_data', 10, 2 );
Best regards