post_type, 'normal', 'high' ); } public function metabox( $post_id = 0 ) { return apply_filters( 'lp/metabox/lesson/lists', array( '_lp_duration' => new LP_Meta_Box_Duration_Field( esc_html__( 'Duration', 'learnpress' ), '', '0', array( 'default_time' => 'minute', 'custom_attributes' => array( 'min' => '0', 'step' => '1', ), ) ), '_lp_preview' => new LP_Meta_Box_Checkbox_Field( esc_html__( 'Preview', 'learnpress' ), esc_html__( 'Students can view this lesson content without taking the course.', 'learnpress' ), 'no' ), ) ); } public function output( $post ) { parent::output( $post ); ?>