Created
April 7, 2012 11:57
-
-
Save mikejolley/2328155 to your computer and use it in GitHub Desktop.
WooCommerce - Custom order number (in 1.5.3+)
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
add_filter( 'woocommerce_order_number', 'custom_woocommerce_order_number', 1, 2 ); | |
function custom_woocommerce_order_number( $oldnumber, $order ) { | |
return 'CUSTOMPREFIX' . $order->id; | |
} |
But Mike, i put this in functions.php and my order number keeps changing.
How to prefix order date and customer name
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
super useful! thanks!