wc_tax_enabled()
Are store-wide taxes enabled?
Description #Description
Return #Return
(bool)
Source #Source
File: includes/wc-conditional-functions.php
function wc_tax_enabled() { return apply_filters( 'wc_tax_enabled', get_option( 'woocommerce_calc_taxes' ) === 'yes' ); }
Related #Related
Used By #Used By
Used By | Description |
---|---|
packages/woocommerce-blocks/src/BlockTypes/Checkout.php: Checkout::enqueue_data() |
Extra data passed through from server to client for block. |
packages/woocommerce-blocks/src/BlockTypes/Cart.php: Cart::enqueue_data() |
Extra data passed through from server to client for block. |
includes/class-wc-order-item.php: WC_Order_Item::calculate_taxes() |
Calculate item taxes. |
includes/wc-formatting-functions.php: wc_price() |
Format the price with a currency symbol. |
includes/admin/settings/class-wc-settings-tax.php: WC_Settings_Tax::__construct() |
Constructor. |
includes/admin/settings/class-wc-settings-tax.php: WC_Settings_Tax::add_settings_page() |
Add this page to settings. |
includes/admin/list-tables/class-wc-admin-list-table-orders.php: WC_Admin_List_Table_Orders::get_order_preview_item_html() |
Get items to display in the preview as HTML. |
includes/admin/class-wc-admin-reports.php: WC_Admin_Reports::get_reports() |
Returns the definitions for the reports to show in admin. |
includes/wc-conditional-functions.php: wc_prices_include_tax() |
Are prices inclusive of tax? |
includes/gateways/paypal/includes/class-wc-gateway-paypal-request.php: WC_Gateway_Paypal_Request::get_paypal_args() |
Get PayPal Args for passing to PP. |
includes/class-wc-order.php: WC_Order::get_formatted_order_total() |
Gets order total – formatted for display. |
includes/data-stores/class-wc-product-variable-data-store-cpt.php: WC_Product_Variable_Data_Store_CPT::get_price_hash() |
Create unique cache key based on the tax location (affects displayed/cached prices), product version and active price filters. |
includes/wc-cart-functions.php: wc_cart_totals_order_total_html() |
Get order total html including inc tax if needed. |
includes/class-wc-order-item-shipping.php: WC_Order_Item_Shipping::calculate_taxes() |
Calculate item taxes. |
includes/widgets/class-wc-widget-price-filter.php: WC_Widget_Price_Filter::widget() |
Output widget. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::add_order_item_totals_tax_rows() |
Add total row for taxes. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::get_subtotal_to_display() |
Gets subtotal – subtotal is shown before discounts, but with localised taxes. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::set_item_discount_amounts() |
After applying coupons via the WC_Discounts class, update line items. |
includes/abstracts/abstract-wc-order.php: WC_Abstract_Order::set_coupon_discount_amounts() |
After applying coupons via the WC_Discounts class, update or create coupon items. |
includes/abstracts/abstract-wc-product.php: WC_Product::get_price_suffix() |
Get the suffix to display after prices > 0. |
includes/abstracts/abstract-wc-product.php: WC_Product::is_taxable() |
Returns whether or not the product is taxable. |
includes/abstracts/abstract-wc-shipping-method.php: WC_Shipping_Method::is_taxable() |
Whether or not we need to calculate tax on top of the shipping rate. |
includes/class-wc-query.php: WC_Query::price_filter_post_clauses() |
Custom query used to filter products by price. |
includes/class-wc-cart-totals.php: WC_Cart_Totals::get_item_tax_rates() |
Get tax rates for an item. Caches rates in class to avoid multiple look ups. |
includes/class-wc-cart-totals.php: WC_Cart_Totals::__construct() |
Sets up the items provided, and calculate totals. |
includes/class-wc-order-item-fee.php: WC_Order_Item_Fee::calculate_taxes() |
Calculate item taxes. |
includes/rest-api/Controllers/Version2/class-wc-rest-products-v2-controller.php: WC_REST_Products_V2_Controller::get_collection_params() |
Get the query params for collections of attachments. |