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 ); ?>
metabox( $post->ID ) as $key => $object ) { if ( is_a( $object, 'LP_Meta_Box_Field' ) ) { $object->id = $key; $output = $object->output( $post->ID ); if ( ! empty( $output ) ) { learn_press_echo_vuejs_write_on_php( $object->output( $post->ID ) ); } } elseif ( is_array( $object ) ) { $is_old = true; } } ?>
output( $post->ID ); ?>
metabox( $post->ID ) ); } do_action( 'learnpress/lesson-settings/after' ); ?>