Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Turn WC_Order::get_tax_location public #36953

Merged
merged 3 commits into from Mar 9, 2023
Merged
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Jump to
Jump to file
Failed to load files.
Diff view
Diff view
@@ -0,0 +1,4 @@
Significance: minor
Type: update

Make WC_Order::get_tax_location public
Expand Up @@ -1619,7 +1619,7 @@ public function get_items_tax_classes() {
* @param array $args array Override the location.
* @return array
*/
protected function get_tax_location( $args = array() ) {
public function get_tax_location( $args = array() ) {
$tax_based_on = get_option( 'woocommerce_tax_based_on' );

if ( 'shipping' === $tax_based_on && ! $this->get_shipping_country() ) {
Expand Down