WC_Product::is_taxable
Returns whether or not the product is taxable.
Метод класса: WC_Product{}
Хуки из метода
Возвращает
true|false.
Использование
$WC_Product = new WC_Product(); $WC_Product->is_taxable();
Код WC_Product::is_taxable() WC Product::is taxable WC 10.7.0
public function is_taxable() {
/**
* Filters whether a product is taxable.
*
* @since 2.7.0
* @param bool $taxable Whether the product is taxable.
* @param WC_Product $product Product object.
*/
return apply_filters( 'woocommerce_product_is_taxable', $this->get_tax_status() === ProductTaxStatus::TAXABLE && wc_tax_enabled(), $this );
}