woocommerce_customer_bought_product_use_lookup_tables

FILTER woocommerce\includes\wc-user-functions.php (ligne 425) github
Whether to use lookup tables - it can optimize performance, but correctness depends on the frequency of the AS job.

Paramètres

Entrée :
false, $customer_email, $user_id, $product_id
Sortie :
@param bool $enabled
@param string $customer_email Customer email to check.
@param int    $user_id User ID to check.
@param int    $product_id Product ID to check.
@return bool

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_customer_bought_product_use_lookup_tables'
add_filter('woocommerce_customer_bought_product_use_lookup_tables', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(false) {
    // Modifier la valeur
    return false;
}

Actualités

Chargement des actualités...