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

apply_filters('woocommerce_pre_customer_bought_product') is found 1 times:

  • /includes/wc-user-functions.php line 408
    404
    405
    406
    407
    408
    409
    410
    411
    412
    413
    414
    */
    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;
        }
     
        /**