woocommerce_order_refunded

ACTION woocommerce\includes\wc-order-functions.php (ligne 741) github
Filter the status to set the order to when fully refunded.

Paramètres

Entrée :
$order->get_id(
Sortie :
@param string $parent_status The status to set the order to when fully refunded.
@param int    $order_id      The order ID.
@param int    $refund_id     The refund ID.

Utilisation

// Ajouter une fonction au hook action 'woocommerce_order_refunded'
add_action('woocommerce_order_refunded', 'ma_fonction_personnalisee', 10, 1);

function ma_fonction_personnalisee($order->get_id() {
    // Votre code ici
    error_log('Hook woocommerce_order_refunded déclenché');
}

Actualités

Chargement des actualités...