Advertisement
verygoodplugins

Untitled

Jul 10th, 2020
1,412
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.27 KB | None | 0 0
  1. function get_order_total( $order_data, $order ) {
  2.  
  3.     $order_data['tax_amount']      = $order->get_total_tax();
  4.     $order_data['coupon_discount'] = $order->get_total_discount();
  5.  
  6.     return $order_data;
  7.  
  8. }
  9.  
  10. add_filter( 'wpf_woocommerce_customer_data', 'get_order_total', 10, 2 );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement