WC_Widget_Layered_Nav::get_current_taxonomy
Return the currently viewed taxonomy name.
Method of the class: WC_Widget_Layered_Nav{}
No Hooks.
Returns
String.
Usage
// protected - for code of main (parent) or child class $result = $this->get_current_taxonomy();
WC_Widget_Layered_Nav::get_current_taxonomy() WC Widget Layered Nav::get current taxonomy code WC 10.4.3
protected function get_current_taxonomy() {
return is_tax() ? get_queried_object()->taxonomy : '';
}