WC_Tax::get_tax_class_slugs()
Get store tax classes as slugs.
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. |
WC_Tax::get_tax_class_slugs() WC Tax::get tax class slugs code WC 9.4.2
public static function get_tax_class_slugs() { return wp_list_pluck( self::get_tax_rate_classes(), 'slug' ); }