WordPress at Your Fingertips
function is not described

WC_Settings_Tax::get_current_tax_class() private WC 1.0

Get tax class being edited.

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

No Hooks.

Return

String.

Usage

$result = WC_Settings_Tax::get_current_tax_class();

Code of WC_Settings_Tax::get_current_tax_class() WC 5.9.0

private static function get_current_tax_class() {
	global $current_section;

	$tax_classes   = WC_Tax::get_tax_classes();
	$current_class = '';

	foreach ( $tax_classes as $class ) {
		if ( sanitize_title( $class ) === $current_section ) {
			$current_class = $class;
		}
	}

	return $current_class;
}