WC_Widget_Layered_Nav::get_current_term_id() protected WC 1.0
Return the currently viewed term ID.
{} Это метод класса: WC_Widget_Layered_Nav{}
Хуков нет.
Возвращает
Число.
Использование
// protected - в коде основоного (родительского) или дочернего класса $result = $this->get_current_term_id();
Код WC_Widget_Layered_Nav::get_current_term_id() WC Widget Layered Nav::get current term id WC 5.0.0
protected function get_current_term_id() {
return absint( is_tax() ? get_queried_object()->term_id : 0 );
}