How to Get a Connected Course by Lesson ID

Lessons are connected to courses by storing the course ID in each lesson’s post meta using the key “wpc-connected-lesson-to-course.”

[et_pb_dmb_code_snippet code=”JGxlc3Nvbl9pZCA9IDI5OwokY291cnNlX2lkID0gZ2V0X3Bvc3RfbWV0YSggJGxlc3Nvbl9pZCwgJ3dwYy1jb25uZWN0ZWQtbGVzc29uLXRvLWNvdXJzZScsIHRydWUgKTs=” language=”php” style=”github” linenums=”on” _builder_version=”4.3.4″ hover_enabled=”0″]JGxlc3Nvbl9pZCA9IDI5OwokY291cnNlX2lkID0gZ2V0X3Bvc3RfbWV0YSggJGxlc3Nvbl9pZCwgJ3dwYy1jb25uZWN0ZWQtbGVzc29uLXRvLWNvdXJzZScsIHRydWUgKTs=[/et_pb_dmb_code_snippet]