📌  相关文章
📜  是产品类别 woocommerce - 任何代码示例

📅  最后修改于: 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
}