Advertisement
shelob9

Untitled

Jul 31st, 2016
80
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.21 KB | None | 0 0
  1. add_filter( 'woocommerce_order_status_completed', function( $order_id ){
  2. if( class_exists( 'WP_Papertrail_API' ) ){
  3. WP_Papertrail_API::log( [ 'order-id' => $order_id ], 'new_order' );
  4. }
  5. return $order_id;
  6. });
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement