Automattic\WooCommerce\Internal\Orders
TaxesController::calc_line_taxes_via_ajax()
Calculate line taxes via Ajax call.
Метод класса: TaxesController{}
Хуков нет.
Возвращает
null
. Ничего (null).
Использование
$TaxesController = new TaxesController(); $TaxesController->calc_line_taxes_via_ajax(): void;
Код TaxesController::calc_line_taxes_via_ajax() TaxesController::calc line taxes via ajax WC 9.4.2
public function calc_line_taxes_via_ajax(): void { check_ajax_referer( 'calc-totals', 'security' ); if ( ! current_user_can( 'edit_shop_orders' ) || ! isset( $_POST['order_id'], $_POST['items'] ) ) { wp_die( -1 ); } $order = $this->calc_line_taxes( $_POST ); include __DIR__ . '/../../../includes/admin/meta-boxes/views/html-order-items.php'; wp_die(); }