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