WooCommerece REST API Api not showing all subcategories by parent

Question

I’m requesting to the following endpoint

wp-json/wc/v3/categories?parent=someID

and getting a response for the first 2 children my problem those children has also children (deeply nested here of categories as showing on the image below ), I need to show all subcategories under a specific parent os how I can do this?
enter image description here

0
, , , , hesham shawky 10 months 0 Answers 59 views 0

Leave an answer