woocommerce_customer_bought_product_use_lookup_tables
woocommerce_customer_bought_product_use_lookup_tables
Appears in: woocommerce.9.7.0, woocommerce.9.7.1
Hook Type: filter
Displaying hooks found in version: woocommerce.9.7.1apply_filters('woocommerce_customer_bought_product_use_lookup_tables') is found 1 times:
- /includes/wc-user-functions.php line 425
* @param int $user_id User ID to check. * @param int $product_id Product ID to check. * @return bool */ $use_lookup_tables = apply_filters( 'woocommerce_customer_bought_product_use_lookup_tables', false, $customer_email, $user_id, $product_id ); $transient_name = 'wc_customer_bought_product_' . md5( $customer_email . $user_id . $use_lookup_tables ); if ( $use_lookup_tables ) { // Lookup tables get refreshed along with the `woocommerce_reports` transient version. $transient_version = WC_Cache_Helper::get_transient_version( 'woocommerce_reports' );