includes/cli/class-wc-cli-tax.php 1 location
|
@@ 674-678 (lines=5) @@
|
| 671 |
|
WHERE tax_rate_id = %d |
| 672 |
|
", $id ) ); |
| 673 |
|
|
| 674 |
|
if ( ! is_wp_error( $tax ) && ! is_null( $tax ) ) { |
| 675 |
|
foreach ( $locales as $locale ) { |
| 676 |
|
$tax_data[ $locale->location_type ] = $locale->location_code; |
| 677 |
|
} |
| 678 |
|
} |
| 679 |
|
|
| 680 |
|
$items[] = $tax_data; |
| 681 |
|
} |
includes/api/class-wc-rest-taxes-controller.php 1 location
|
@@ 512-516 (lines=5) @@
|
| 509 |
|
WHERE tax_rate_id = %d |
| 510 |
|
", $id ) ); |
| 511 |
|
|
| 512 |
|
if ( ! is_wp_error( $tax ) && ! is_null( $tax ) ) { |
| 513 |
|
foreach ( $locales as $locale ) { |
| 514 |
|
$data[ $locale->location_type ] = $locale->location_code; |
| 515 |
|
} |
| 516 |
|
} |
| 517 |
|
|
| 518 |
|
$context = ! empty( $request['context'] ) ? $request['context'] : 'view'; |
| 519 |
|
$data = $this->add_additional_fields_to_object( $data, $request ); |