TutorLMS 강의 커스텀 포스트 유형 - Discourse 연결된 게시글이 저장되지 않음 [해결됨]

Hey guys

I found this thread with similar issue like the one I am experiencing: Discourse Publishing Link for Custom Post Type Disappears

I am using TutorLMS WP plugin which registers its lesson Custom post type

I can connect a Lesson post to an existing topic and post the content to Discourse. But after reloading the wp editor, the topic is not linked anymore.

@angus if necessary, I can give you access to our Staging to reproduce the issue.

Solved it via


function add_custom_fields_support_to_lesson() {
    add_post_type_support('lesson', 'custom-fields');
}
add_action('init', 'add_custom_fields_support_to_lesson', 11);