WC_Tax::format_tax_rate_class()
Format the class.
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.
WC_Tax::format_tax_rate_class() WC Tax::format tax rate class code WC 9.4.2
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; }