Advertisement
Guest User

Untitled

a guest
Sep 24th, 2016
65
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. <?php
  2.  
  3. // Add billing phone to orders table
  4. function add_billing_phone( $order_rows ){
  5.  
  6. foreach ( $order_rows as $key => $row ) {
  7.  
  8. $_order = new WC_Order( $row->ID );
  9. $row->customer = $_order->get_formatted_shipping_address() .'<br />'. $_order->billing_email .'<br />' . $_order->billing_phone;
  10. }
  11.  
  12. return $order_rows;
  13.  
  14. }
  15. add_filter( 'wcv_orders_table_rows', 'add_billing_phone' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement