📅  最后修改于: 2022-03-11 14:58:55.587000             🧑  作者: Mango
代码示例2
if( has_term( 4, 'product_cat' ) ) {
// do something if current product in the loop is in product category with ID 4
}