You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
$_product = Sensei_WC::get_product_object( $item_id, $product_type );
// Get courses that use the WC product
$courses = array();
$courses = Sensei()->course->get_product_courses( $item_id );
// Loop and update those courses
foreach ($courses as $course_item){
if( self::has_customer_bought_product( $user_id, $course_item->ID ) ){
continue;
}
// Check and Remove course from courses user meta
$dataset_changes = Sensei_Utils::sensei_remove_user_from_course( $course_item->ID, $user_id );
} // End For Loop
The text was updated successfully, but these errors were encountered:
On line 1305 of Sensei_WC::cancel_order
https://github.com/Automattic/sensei/blob/master/includes/class-sensei-wc.php#L1305
Sensei_Utils::sensei_remove_user_from_course method expects second parameter to be product_id, but course_id given instead.
The text was updated successfully, but these errors were encountered: