woocommerce_pre_customer_bought_product

woocommerce_pre_customer_bought_product

Appears in: , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , , ,
Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.5.1

apply_filters('woocommerce_pre_customer_bought_product') is found 1 times:

  • /includes/wc-user-functions.php line 407
     */
    function wc_customer_bought_product( $customer_email, $user_id, $product_id ) {
    	global $wpdb;
    
    	$result = apply_filters( 'woocommerce_pre_customer_bought_product', null, $customer_email, $user_id, $product_id );
    
    	if ( null !== $result ) {
    		return $result;
    	}
    
    	$transient_name    = 'wc_customer_bought_product_' . md5( $customer_email . $user_id );