woocommerce_order_needs_shipping

FILTER woocommerce\includes\abstracts\abstract-wc-order.php (ligne 2488) github
Filter to modify the needs shipping value for a given order.

Paramètres

Entrée :
$needs_shipping, $this
Sortie :
@param bool $needs_shipping The value originally calculated.
@param WC_Abstract_Order $order The order for which the value is calculated.

Utilisation

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

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

Actualités

Chargement des actualités...