WordPress at Your Fingertips
function is not described

WC_Product_Variation::get_valid_tax_classes() protected WC 1.0

Return valid tax classes. Adds 'parent' to the default list of valid tax classes.

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

No Hooks.

Return

Array. valid tax classes

Usage

// protected - for code of main (parent) or child class
$result = $this->get_valid_tax_classes();

Code of WC_Product_Variation::get_valid_tax_classes() WC 5.7.1

protected function get_valid_tax_classes() {
	$valid_classes   = WC_Tax::get_tax_class_slugs();
	$valid_classes[] = 'parent';

	return $valid_classes;
}