Alert: This function’s access is marked private. This means it is not intended for use by plugin or theme developers, only in other core functions. It is listed here for completeness.
WC_Settings_Tax::get_current_tax_class()
Get tax class being edited.
Description Description
Return Return
(string)
Source Source
File: includes/admin/settings/class-wc-settings-tax.php
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; }