Skip to content

Commit

Permalink
Make get_taxes_like_cart method public
Browse files Browse the repository at this point in the history
This is to make it possible it can be used from class-wc-payments-express-checkout-ajax-handler.php
  • Loading branch information
asumaran committed Jul 8, 2024
1 parent 3205823 commit 33d4f17
Showing 1 changed file with 1 addition and 1 deletion.
Original file line number Diff line number Diff line change
Expand Up @@ -815,7 +815,7 @@ public function get_product_price( $product, ?bool $is_deposit = null, int $depo
* @param float $price The price, which to calculate taxes for.
* @return array An array of final taxes.
*/
private function get_taxes_like_cart( $product, $price ) {
public function get_taxes_like_cart( $product, $price ) {
if ( ! wc_tax_enabled() || $this->cart_prices_include_tax() ) {
// Only proceed when taxes are enabled, but not included.
return [];
Expand Down

0 comments on commit 33d4f17

Please sign in to comment.