Allow the restock note to be modified.
$restock_note, $old_stock, $new_stock, $order, $product
Sortie :
@param string $restock_note The original note. @param int $old_stock The old stock. @param bool|int|null $new_stock The new stock. @param WC_Order $order The order the refund was done for. @param bool|WC_Product $product The product the refund was done for.
// Modifier la valeur avec le filtre 'woocommerce_refund_restock_note'
add_filter('woocommerce_refund_restock_note', 'ma_fonction_filtre', 10, 1);
function ma_fonction_filtre($restock_note) {
// Modifier la valeur
return $restock_note;
}
Chargement des actualités...