Last active
November 15, 2021 07:21
-
-
Save xavierlopez/4db7bc8a24c11eeeefdf744ebfc0fffb to your computer and use it in GitHub Desktop.
How to get related course from product (LearnDash WooCommerce integration)
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
//Here we get an array of related LearnDash courses related to a WC_Product | |
$courses_id = get_post_meta( $product->get_id(), '_related_course',true); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment