kilbot
1/31/2015 - 12:15 AM

Add to the theme functions.php file

Add to the theme functions.php file

function log_new_orders() {
  error_reporting(0);
  $log = new WC_Logger();
  $log->add('woocommerce-pos', print_r(debug_backtrace(), true));
}
add_action( 'save_post_shop_order', 'log_new_orders' );