Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- <?php
- // Add billing phone to orders table
- function add_billing_phone( $order_rows ){
- foreach ( $order_rows as $key => $row ) {
- $_order = new WC_Order( $row->ID );
- $row->customer = $_order->get_formatted_shipping_address() .'<br />'. $_order->billing_email .'<br />' . $_order->billing_phone;
- }
- return $order_rows;
- }
- add_filter( 'wcv_orders_table_rows', 'add_billing_phone' );
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement