Add Custom Status PDF Invoice
User add_filter ( 'pdf_invoice_order_status_array', 'add_custom_order_status_to_pdf_invoice_order_status_array', 10, 2 ); function add_custom_order_status_to_pdf_invoice_order_status_array ( $order_status_array ) { $order_status_array = array('dispensing'); return $order_status_array; } what above code work Assistant The provided code modifies the PDF Invoice plugin's functionality by hooking into the `pdf_invoice_order_status_array` filter. However, there is an issue with the implementation that will likely cause it to override […]