Course builder custom fields for developers
This example code will add a custom course builder metabox for lessons with various custom fields.
All data is automatically saved to the wp_postmeta
 table for the post type.
This example shows how to add custom fields to a lesson but custom fields can also be defined for quizzes and assignments.
This will result in a lesson metabox like this: