Filter
rpress_tax_name
On this page
Filters the tax label shown to customers.
Runs in rpress_get_tax_name(). The default is the tax_name setting, or a translated 'Estimated Tax' when that setting is empty.
Parameters#
| Parameter | Type | Description |
|---|---|---|
$tax_name | string | Tax label. |
Return value#
string. Tax label.
Example#
function my_tax_name( $tax_name ) {
return __( 'VAT', 'my-plugin' );
}
add_filter( 'rpress_tax_name', 'my_tax_name' );
Source#
Applied in:
includes/tax-functions.php(line 206), inrpress_get_tax_name()
See also#
Was this page helpful?
