LaVOZs

The World’s Largest Online Community for Developers

'; How to get woocommerce new order billing details in log file using wordpress hook - LavOzs.Com

add_action( 'woocommerce_new_order', 'awo_mainmenu' );

function awo_mainmenu($order_id) 
{
  error_log("$order_i`enter code here`d", 3, '/tmp/order.log' );
  die('exit');
}

enter code here
Related
Woocommerce Dump New Order Details in MySQL Table
How to get WooCommerce order details
Add a additional detail to the order. Woocommerce
Fetching order data in new order hook
what is a wordpress/woocommerce hook tha fire afer a woocommerce product saved
Auto change order status from processing to completed in Woocommerce
WooCommerce Get Order Item Quantity For Multiple Orders / Bulk Query