Hello, I have a function in wordpress functions.php where on update product i have the ID of the product but i also need to get the assign Product Locations to that product by the product ID, Can anyone guide me how can i get product Locations from that specific Product ID.
After getting the Product Location i Have the ID of another product where i also want to update and assign the same product location which i will get from the previous ID.
Need Guideline and code example if anyone have please.
Where in the database which table these relations store product and product locations