woocommerce_update_new_customer_past_orders

The WooCommerce woocommerce update new customer past orders function.

Description

woocommerce_update_new_customer_past_orders( $customer_id ); 

Parameters (1)

0. $customer_id
The customer id.

Usage

  1. if ( !function_exists( 'woocommerce_update_new_customer_past_orders' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The customer id. 
  5. $customer_id = null; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = woocommerce_update_new_customer_past_orders($customer_id); 
  9.  

Defined (1)

The function is defined in the following location(s).

/includes/wc-deprecated-functions.php  
  1. function woocommerce_update_new_customer_past_orders( $customer_id ) { 
  2. return wc_update_new_customer_past_orders( $customer_id );