SHARE
TWEET

Untitled

a guest Aug 19th, 2019 68 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. add_filter( 'woocommerce_order_number', 'change_woocommerce_order_number', 1, 2);
  2.  
  3. function change_woocommerce_order_number( $order_id, $order ) {
  4.     $prefix = '#SAM-';
  5.     $suffix = '-' . date(Y);
  6.     return $prefix . $order->id . $suffix;
  7. }
RAW Paste Data
We use cookies for various purposes including analytics. By continuing to use Pastebin, you agree to our use of cookies as described in the Cookies Policy. OK, I Understand
 
Top