WC_Widget_Layered_Nav::get_current_taxonomy()
Return the currently viewed taxonomy name.
Method of the class: WC_Widget_Layered_Nav{}
No Hooks.
Return
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 9.4.2
protected function get_current_taxonomy() { return is_tax() ? get_queried_object()->taxonomy : ''; }