WC_Widget_Layered_Nav::get_current_term_id()
Return the currently viewed term ID.
Method of the class: WC_Widget_Layered_Nav{}
No Hooks.
Return
Int
.
Usage
// protected - for code of main (parent) or child class $result = $this->get_current_term_id();
WC_Widget_Layered_Nav::get_current_term_id() WC Widget Layered Nav::get current term id code WC 9.4.2
protected function get_current_term_id() { return absint( is_tax() ? get_queried_object()->term_id : 0 ); }