WordPress at Your Fingertips
function is not described

WC_Tax::format_tax_rate_class() public WC 1.0

Format the class.

{} It's a method of the class: WC_Tax{}

No Hooks.

Return

String.

Usage

$result = WC_Tax::format_tax_rate_class( $class );
$class(string) (required)
Value to format.

Code of WC_Tax::format_tax_rate_class() WC 5.9.0

public static function format_tax_rate_class( $class ) {
	$class   = sanitize_title( $class );
	$classes = self::get_tax_class_slugs();
	if ( ! in_array( $class, $classes, true ) ) {
		$class = '';
	}
	return ( 'standard' === $class ) ? '' : $class;
}