Filter to modify the needs shipping value for a given order.
$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.
// 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;
}
Chargement des actualités...