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.8.7.0

apply_filters('woocommerce_pre_customer_bought_product') is found 1 times:

  • /includes/wc-user-functions.php line 323
     */
    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 );