WC_Tax::format_tax_rate_stateprivate staticWC 1.0

Format the state.

Method of the class: WC_Tax{}

No Hooks.

Returns

String.

Usage

$result = WC_Tax::format_tax_rate_state( $state );
$state(string) (required)
Value to format.

WC_Tax::format_tax_rate_state() code WC 10.5.0

private static function format_tax_rate_state( $state ) {
	$state = strtoupper( $state );
	return ( '*' === $state ) ? '' : $state;
}