Get custom order number from order id
-
Hello, I am using custom order id plugin pro version with syntax YYYY-MM-OrderNo e.g. 2020045001. However, when I use the following piece of code, it only returns me the OrderNo i.e. 5001:
$invoice_no = get_post_meta( $order_id, '_alg_wc_custom_order_number', true );
Can you please tell how can I get the complete custom id with the YYYY and MM before it as well?
Thank you.
Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
- The topic ‘Get custom order number from order id’ is closed to new replies.