title: Get the parent product categories ids from a sub product category ID in Woocommerce
body: <pre><code>For example : 
  - A = 21
    - B = 22
       - C = 23
  </code></pre>
  
  <p>How can I get 21 and 22 IDs using 23 sub Id?</p>