function new_learnpress_lesson_meta() {
return array(
'id' => 'lesson_settings',
'title' => __( 'Lesson Settings', 'learnpress' ),
'pages' => array( LP_LESSON_CPT ),
'fields' => array(
array(
'name' => __( 'Lesson Duration', 'learnpress' ),
'id' => '_lp_duration',
'type' => 'duration',
'default_time' => 'minute',
'desc' => __( 'Duration of the lesson. Set 0 to disable.', 'learnpress' ),
'std' => 0,
),
array(
'name' => __( 'Preview Lesson', 'learnpress' ),
'id' => '_lp_preview',
'type' => 'yes-no',
'desc' => __( 'If this is a preview lesson, then student can view this lesson content without taking the course.', 'learnpress' ),
'std' => 'no'
)
)
);
}
add_filter( 'learn_press_lesson_meta_box_args', 'new_learnpress_lesson_meta', 10 );
Please try to use this filter in your child theme ??
Let me know.