woocommerce_customer_bought_product_use_lookup_tables

woocommerce_customer_bought_product_use_lookup_tables

Hook Type: filter

See hook in core

Displaying hooks found in version: woocommerce.9.7.1

apply_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' );