public/wordpress/wp-content/plugins/wp-courseware/includes/legacy/classes/dripfeed.php
/**
		 * Function called when a user has been removed from specified courses, so remove
		 * all queue items associated with this user.
		 *
		 * @param Integer $userID The ID of the user that has been removed.
		 * @param Array $courseList The list of course IDs that this user has been removed from.
		 */
Function called when a user has been removed from specified courses, so remove
all queue items associated with this user.

@param Integer $userID The ID of the user that has been removed.
@param Array $courseList The list of course IDs that this user has been removed from.
Function called when a user has been removed from specified courses so remove all queue items associated with this user . @param Integer $userID The ID of the user that has been removed . @param Array $courseList The list of course IDs that this user has been removed from .
public static function updateQueueItems_removeUser_fromCourseList( $userID, $courseList ) {
			if ( empty( $courseList ) ) {
				return;
			}
			global $wpdb, $wpcwdb;
			$wpdb->show_errors();
			foreach ( $courseList as $courseID ) {
				$wpdb->query( $wpdb->prepare( "
					DELETE
					FROM $wpcwdb->queue_dripfeed
					WHERE queue_user_id = %d
					  AND queue_course_id = %d
					", $userID, $courseID ) );
			}
		}
public static function updateQueueItems_removeUser_fromCourseList ( $ userID , $ courseList ) { if ( empty ( $ courseList ) ) { return ; } global $ wpdb , $ wpcwdb ; $ wpdb -> show_errors ( ) ; foreach ( $ courseList as $ courseID ) { $ wpdb -> query ( $ wpdb -> prepare ( " 
					DELETE
					FROM  $ wpcwdb -> queue_dripfeed 
					WHERE queue_user_id = %d
					  AND queue_course_id = %d
					 " , $ userID , $ courseID ) ) ; } }
Function called when a user has been removed from specified courses, so remove
 all queue items associated with this user.
Function called when a user has been removed from specified courses so remove all queue items associated with this user .