LLMS_Widget_Course_Progress::update( array $new_instance, array $old_instance )
Sanitize widget form values as they are saved.
Description Description
See also See also
Parameters Parameters
- $new_instance
-
(array) (Required) Values just sent to be saved.
- $old_instance
-
(array) (Required) Previously saved values from database.
Return Return
(array) Updated safe values to be saved.
Source Source
File: includes/widgets/class.llms.widget.course.progress.php
public function update( $new_instance, $old_instance ) { $instance = parent::update( $new_instance, $old_instance ); $instance['check_enrollment'] = ( ! empty( $new_instance['check_enrollment'] ) ) ? 1 : 0; return $instance; }
Expand full source code Collapse full source code View on GitHub
Changelog Changelog
Version | Description |
---|---|
3.38.0 | Introduced. |