Skip to content
Docs
Get RestroPress

Filter

rpress_tax_name

Updated
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#

ParameterTypeDescription
$tax_namestringTax 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), in rpress_get_tax_name()

See also#

Was this page helpful?