How can I find related learndash course id from woocommerce product object?
I have woocommerce integrated with LearnDash. Now I am trying to get the selected course (related course) from the woocommerce product object or any other way (by woocommerce product id). There must be a way as buying the product unlocks the course. Just cannot find it.
Could anyone help?