WordPress at Your Fingertips
function is not described

WC_Tax::get_tax_class_slugs() public WC 3.0.0

Get store tax classes as slugs.

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

No Hooks.

Return

Array. Array of class slugs ("reduced-rate", "zero-rate", etc).

Usage

$result = WC_Tax::get_tax_class_slugs();

Changelog

Since 3.0.0 Introduced.

Code of WC_Tax::get_tax_class_slugs() WC 5.9.0

public static function get_tax_class_slugs() {
	return wp_list_pluck( self::get_tax_rate_classes(), 'slug' );
}