Skip to content
Docs
Get RestroPress

Filter

rpress_local_taxes_only

Updated
On this page

Filters whether only local taxes are enabled, in the deprecated rpress_local_taxes_only().

Applied in the deprecated rpress_local_taxes_only() function, which returns true when the tax_condition option in the global options array equals local. The function is only reached by legacy code that still calls it.

Parameters#

ParameterTypeDescription
$local_onlyboolTrue if the tax_condition option is set to local.

Return value#

bool. Whether only local taxes apply.

Example#

function my_local_taxes_only( $local_only ) {
	return false;
}
add_filter( 'rpress_local_taxes_only', 'my_local_taxes_only' );

Notes#

Deprecated since 1.6. No replacement is provided.

Source#

Applied in:

  • includes/deprecated-functions.php (line 130), in rpress_local_taxes_only()

See also#

Was this page helpful?