Filter the status to set the order to when fully refunded.
$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.
// 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é');
}
Chargement des actualités...