I have this answer for reference: Woocommerce Get Product Values by ID … It is about the function wc_get_product() that returns protected data.
Where are the getter methods defined for that function?
How can i access the protected data inside wc_get_product()?
This Answer thread is telling that WC_Product_Factory class is being used. Can this class be extended to access the protected data inside wc_get_product()?
The wc_get_product() seems to be a function, but how does it return an object?