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