WordPress at Your Fingertips
function is not described

WC_Widget_Layered_Nav::get_current_taxonomy() protected WC 1.0

Return the currently viewed taxonomy name.

{} It's a 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();

Code of WC_Widget_Layered_Nav::get_current_taxonomy() WC 5.8.0

protected function get_current_taxonomy() {
	return is_tax() ? get_queried_object()->taxonomy : '';
}