WC_Widget_Layered_Nav::get_current_taxonomy()
Return the currently viewed taxonomy name.
Метод класса: WC_Widget_Layered_Nav{}
Хуков нет.
Возвращает
Строку
.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_current_taxonomy();
Код WC_Widget_Layered_Nav::get_current_taxonomy() WC Widget Layered Nav::get current taxonomy WC 9.8.2
protected function get_current_taxonomy() { return is_tax() ? get_queried_object()->taxonomy : ''; }