woocommerce_get_item_count_refunded

FILTER woocommerce\includes\class-wc-order.php (ligne 2278) github
Gets the count of order items of a certain type that have been refunded.

Paramètres

Entrée :
$count, $item_type, $this
Sortie :
@param string $item_type Item type.
@return string

Utilisation

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

function ma_fonction_filtre($count) {
    // Modifier la valeur
    return $count;
}

Actualités

Chargement des actualités...