woocommerce_order_fully_refunded

ACTION woocommerce\includes\wc-order-functions.php (ligne 715) github
Trigger notification emails. Filter hook to modify the partially-refunded status conditions.
traduction française
Déclencher des courriels de notification. Crochet de filtrage pour modifier les conditions de l'état de remboursement partiel.

Paramètres

Entrée :
$order->get_id(
Sortie :
@param bool $is_partially_refunded Whether the order is partially refunded.
@param int  $order_id The order id.
@param int  $refund_id The refund id.

Utilisation

Action quand une commande est entièrement remboursée

Exécuter du code après un remboursement total

order-flow
// Action après remboursement complet
add_action('woocommerce_order_fully_refunded', 'apres_remboursement_complet', 10, 2);

function apres_remboursement_complet($order_id, $refund_id) {
    $order = wc_get_order($order_id);
    
    // Notifier le service client
    // Mettre à jour le CRM
    // Analyser les raisons de remboursement
    
    $order->add_order_note('Commande entièrement remboursée.');
}

Actualités

Chargement des actualités...