Skip to content

Instantly share code, notes, and snippets.

@rajeshsingh520
Created July 2, 2024 10:04
Show Gist options
  • Save rajeshsingh520/195546a3ae47ab78631c43d19bf9bb3c to your computer and use it in GitHub Desktop.
Save rajeshsingh520/195546a3ae47ab78631c43d19bf9bb3c to your computer and use it in GitHub Desktop.
add_filter('pisol_cefw_cart_total', function($total, $cart, $fee_arg, $fees){
foreach($fee_arg as $fee_detail){
$total += $fee_detail['amount'];
}
return $total;
}, 10, 4);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment