Automattic\WooCommerce\Blocks\BlockTypes
MiniCart::get_include_tax_label_markup
Returns the markup for render the tax label.
Method of the class: MiniCart{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_include_tax_label_markup( $attributes );
- $attributes(array) (required)
- Block attributes.
MiniCart::get_include_tax_label_markup() MiniCart::get include tax label markup code WC 10.4.3
protected function get_include_tax_label_markup( $attributes ) {
if ( empty( $this->tax_label ) ) {
return '';
}
$price_color = isset( $attributes['priceColor']['color'] ) ? $attributes['priceColor']['color'] : '';
return '<small class="wc-block-mini-cart__tax-label" style="color:' . esc_attr( $price_color ) . ' " hidden>' . esc_html( $this->tax_label ) . '</small>';
}