LLMS_Widget_Course_Progress::form( array $instance )

Back-end widget form.

Description Description

See also See also

Top ↑

Parameters Parameters


(array) (Required) Previously saved values from database.

Top ↑

Source Source

File: includes/widgets/class.llms.widget.course.progress.php

	public function form( $instance ) {

		// Call widget defaults from parent.
		parent::form( $instance );
		$check_enrollment = ( isset( $instance['check_enrollment'] ) ) ? $instance['check_enrollment'] : 1;
			<input <?php checked( 1, $check_enrollment ); ?> class="checkbox llms-course-progress-check-enrollment" id="<?php echo $this->get_field_id( 'check_enrollment' ); ?>" name="<?php echo $this->get_field_name( 'check_enrollment' ); ?>" type="checkbox" value="1">
			<label for="<?php echo $this->get_field_id( 'check_enrollment' ); ?>">
				<?php _e( 'Display to enrolled students only?', 'lifterlms' ); ?><br>
				<em><?php _e( 'When checked the course progress bar will be shown only to those students enrolled in the course.', 'lifterlms' ); ?></em>

Top ↑

Changelog Changelog

Version Description
3.38.0 Introduced.

Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.