woocommerce_customer_bought_product

The WooCommerce woocommerce customer bought product function.

Description

woocommerce_customer_bought_product( $customer_email, $user_id, $product_id ); 

Parameters (3)

0. $customer_email
The customer email.
1. $user_id
The user id.
2. $product_id
The product id.

Usage

  1. if ( !function_exists( 'woocommerce_customer_bought_product' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'woocommerce/includes/wc-deprecated-functions.php'; 
  3.  
  4. // The customer email. 
  5. $customer_email = null; 
  6.  
  7. // The user id. 
  8. $user_id = null; 
  9.  
  10. // The product id. 
  11. $product_id = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = woocommerce_customer_bought_product($customer_email, $user_id, $product_id); 
  15.  

Defined (1)

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

/includes/wc-deprecated-functions.php  
  1. function woocommerce_customer_bought_product( $customer_email, $user_id, $product_id ) { 
  2. return wc_customer_bought_product( $customer_email, $user_id, $product_id );