New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Create nested categories via API v3 #10147
Comments
Need to be the ID. |
Well, tested and works fine.
Nop, |
Sorry for delay, I still have no success. Notice that the first category ID is 46, older category ids were deleted sometime ago. And finally failing request |
Not a API issue, maybe a problem in our DB.
The category need to exists. Seems like a problem in your DB, since we use just WP functions to create and update categories. |
Congratulations for 2.5 release!
We waited for it and started discovering the API immediately.
Here is the question,
I am trying to create nested categories via API.
When I pass category id as
parent
, I get woocommerce_api_invalid_product_category_parentHere https://github.com/woothemes/woocommerce/blob/master/includes/api/class-wc-api-products.php#L676 I noticed that the parent is looked at by term_taxonomy_id. Is the term_taxonomy_id different than the category id that I get from /products/categories endpoint?
The text was updated successfully, but these errors were encountered: