title: How to get the grouped product ID from a linked product in woocommerce
body: <p>I have a grouped product <strong>product-1</strong> , which has many linked products:</p>
  
  <p>-product-1 (grouped product)</p>
  
  <ul>
  <li>|__ product-2 (simple or variable product) </li>
  <li>|__ product-3 (simple or
  variable product)</li>
  </ul>
  
  <p>I want to get the ID of product-1 using the ID of product-2</p>