public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/courseprogress.php
/**
		 * Method called when data is being saved for this widget.
		 */
Method called when data is being saved for this widget.
Method called when data is being saved for this widget .
public function update( $new_instance, $old_instance ) {
			$instance = $old_instance;
			$instance['title']                    = strip_tags( $new_instance['title'] );
			$instance['option_show_course_title'] = WPCW_arrays_getValue( $new_instance, 'option_show_course_title' );
			$instance['option_show_course_desc']  = WPCW_arrays_getValue( $new_instance, 'option_show_course_desc' );
			$instance['option_show_module_desc']  = WPCW_arrays_getValue( $new_instance, 'option_show_module_desc' );
			$instance['option_course']            = strip_tags( WPCW_arrays_getValue( $new_instance, 'option_course' ) );
			$instance['option_module']            = strip_tags( WPCW_arrays_getValue( $new_instance, 'option_module' ) );
			$instance['option_toggle_modules']        = esc_attr( WPCW_arrays_getValue( $new_instance, 'option_toggle_modules' ) );
			$instance['option_show_modules_previous'] = esc_attr( WPCW_arrays_getValue( $new_instance, 'option_show_modules_previous' ) );
			$instance['option_show_modules_next']     = esc_attr( WPCW_arrays_getValue( $new_instance, 'option_show_modules_next' ) );
			$instance['option_show_only_on_units']    = esc_attr( WPCW_arrays_getValue( $new_instance, 'option_show_only_on_units' ) );
			return $instance;
		}
public function update ( $ new_instance , $ old_instance ) { $ instance = $ old_instance ; $ instance [ 'title' ] = strip_tags ( $ new_instance [ 'title' ] ) ; $ instance [ 'option_show_course_title' ] = WPCW_arrays_getValue ( $ new_instance , 'option_show_course_title' ) ; $ instance [ 'option_show_course_desc' ] = WPCW_arrays_getValue ( $ new_instance , 'option_show_course_desc' ) ; $ instance [ 'option_show_module_desc' ] = WPCW_arrays_getValue ( $ new_instance , 'option_show_module_desc' ) ; $ instance [ 'option_course' ] = strip_tags ( WPCW_arrays_getValue ( $ new_instance , 'option_course' ) ) ; $ instance [ 'option_module' ] = strip_tags ( WPCW_arrays_getValue ( $ new_instance , 'option_module' ) ) ; $ instance [ 'option_toggle_modules' ] = esc_attr ( WPCW_arrays_getValue ( $ new_instance , 'option_toggle_modules' ) ) ; $ instance [ 'option_show_modules_previous' ] = esc_attr ( WPCW_arrays_getValue ( $ new_instance , 'option_show_modules_previous' ) ) ; $ instance [ 'option_show_modules_next' ] = esc_attr ( WPCW_arrays_getValue ( $ new_instance , 'option_show_modules_next' ) ) ; $ instance [ 'option_show_only_on_units' ] = esc_attr ( WPCW_arrays_getValue ( $ new_instance , 'option_show_only_on_units' ) ) ; return $ instance ; }
Method called when data is being saved for this widget.
Method called when data is being saved for this widget .
// Module visibility Toggling