Last active
January 19, 2018 17:10
-
-
Save seostudio/7eddef1f8292925cca7aaadc90ac4588 to your computer and use it in GitHub Desktop.
Prefix in woocommerce order number
This file contains 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', '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