woocommerce_refund_created

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

Paramètres

Entrée :
$refund->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_refund_created'
add_action('woocommerce_refund_created', 'ma_fonction_personnalisee', 10, 1);

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

Actualités

Chargement des actualités...