daily pastebin goal
37%
SHARE
TWEET

Untitled

a guest Dec 17th, 2018 58 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  1. function test_callback($order_id, $old_status, $new_status) {
  2.  
  3.     if( $new_status == "processing" ) {
  4.         var_dump($woocommerce->get("/orders/$order_id")); //неправильный путь
  5.     }
  6.  
  7.  
  8. }
  9.  
  10. add_action( 'woocommerce_order_status_changed', 'test_callback', 10, 3);
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