Filters the SQL query used to get the combined total of all the orders from a given customer.
$sql, $customer
Sortie :
@param string The SQL query to use. @param WC_Customer The customer to get the total spent for. @return string The actual SQL query to use.
// Modifier la valeur avec le filtre 'woocommerce_customer_get_total_spent_query'
add_filter('woocommerce_customer_get_total_spent_query', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($sql) {
// Modifier la valeur
return $sql;
}
Chargement des actualités...