Filter: woocommerce_query_for_reserved_stock Allows to filter the query for getting reserved stock of a product.
$query, $product_id, $exclude_order_id
Sortie :
@param string $query The query for getting reserved stock of a product. @param int $product_id Product ID. @param int $exclude_order_id Order to exclude from the results.
// Modifier la valeur avec le filtre 'woocommerce_query_for_reserved_stock'
add_filter('woocommerce_query_for_reserved_stock', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($query) {
// Modifier la valeur
return $query;
}
Chargement des actualités...