'[regular-price-with-tax]', ); public $display_name = 'Regular price + Tax'; public function getValue($post, $field) { $product = (new \WC_Product_Factory())->get_product($post->ID); return !empty($product) ? $this->getValueWithCurrency(wc_get_price_including_tax( $product, array('qty' => 1, 'price' => get_post_meta($post->ID, '_regular_price', true)) ), $field) : ''; } public function isEnabled() { return 'yes' === get_option( 'woocommerce_prices_include_tax' ) ? false : true; } }