📌  相关文章
📜  在 WooCommerce 中将产品简短描述添加到产品类别 - PHP 代码示例

📅  最后修改于: 2022-03-11 14:53:52.175000             🧑  作者: Mango

代码示例3
if( has_term( 4, 'product_cat' ) ) {
    // do something if current product in the loop is in product category with ID 4
}