woocommerce_order_fully_refunded_status

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

Paramètres

Entrée :
OrderStatus::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.

Utilisation

// Modifier la valeur avec le filtre 'woocommerce_order_fully_refunded_status'
add_filter('woocommerce_order_fully_refunded_status', 'ma_fonction_filtre', 10, 1);

function ma_fonction_filtre(OrderStatus::REFUNDED) {
    // Modifier la valeur
    return OrderStatus::REFUNDED;
}

Actualités

Chargement des actualités...