woocommerce_refund_restock_note

FILTER woocommerce\includes\wc-order-functions.php (ligne 852) github
Allow the restock note to be modified.

Paramètres

Entrée :
$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.

Utilisation

// 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;
}

Actualités

Chargement des actualités...