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

--------------------------------------------------

>>> Share a link to this question, just copy and paste the code bellow on your web page <<<

<a href="https://www.wptricks.com/question/woocommerece-rest-api-api-not-showing-all-subcategories-by-parent/">

WooCommerece REST API Api not showing all subcategories by parent</a>
0
, , , , hesham shawky 2 months 0 Answers 42 views 0

Leave an answer