admin管理员组文章数量:1130349
I am trying to list the categories of my Woocommerce in an "iOS App" using json.
My problem comes from not knowing if a category has subcategories or not (The parameter "Parent" is not useful for me)
{
id: 17,
name: "Uncategorized",
slug: "uncategorized",
parent: 0,
description: "",
.
.
.
}
There is some way to add a parameter to the json that can tell me if a category has subcategory (sample isSubcategory: true/false) or any suggestion to solve my problem.
I am trying to list the categories of my Woocommerce in an "iOS App" using json.
My problem comes from not knowing if a category has subcategories or not (The parameter "Parent" is not useful for me)
{
id: 17,
name: "Uncategorized",
slug: "uncategorized",
parent: 0,
description: "",
.
.
.
}
There is some way to add a parameter to the json that can tell me if a category has subcategory (sample isSubcategory: true/false) or any suggestion to solve my problem.
本文标签: jsonCheck if a category has a parent category in WooCommerce REST API
版权声明:本文标题:json - Check if a category has a parent category in WooCommerce REST API 内容由热心网友自发贡献,该文观点仅代表作者本人, 转载请联系作者并注明出处:https://it.en369.cn/questions/1749254109a2340185.html, 本站仅提供信息存储空间服务,不拥有所有权,不承担相关法律责任。如发现本站有涉嫌抄袭侵权/违法违规的内容,一经查实,本站将立刻删除。


发表评论