Skip to content

Instantly share code, notes, and snippets.

@xavierlopez
Created July 9, 2020 11:13
Show Gist options
  • Save xavierlopez/d4862f6fbf03854180e59804e0335603 to your computer and use it in GitHub Desktop.
Save xavierlopez/d4862f6fbf03854180e59804e0335603 to your computer and use it in GitHub Desktop.
$shortcode_course = '[course_content course_id="'.$course_id.'"]';
// echo LearnDash lessons from course_id
echo do_shortcode("$shortcode_course" );
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment