Skip to content

Instantly share code, notes, and snippets.

@seostudio seostudio/functions.php
Last active Jan 19, 2018

Embed
What would you like to do?
Prefix in woocommerce order number
add_filter( 'woocommerce_order_number', 'wpdesk_woocommerce_order_number_prefix_suffix', 20 );
function wpdesk_woocommerce_order_number_prefix_suffix( $order_id ) {
$prefix = 'X/';
$suffix = '/Y';
$new_order_id = $prefix . $order_id . $suffix;
return $new_order_id;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.