Skip to content

Commit

Permalink
Fix: update post meta
Browse files Browse the repository at this point in the history
  • Loading branch information
Anindra123 committed Jan 13, 2025
1 parent c5e237e commit 191ca5f
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion classes/WooCommerce.php
Original file line number Diff line number Diff line change
Expand Up @@ -693,7 +693,7 @@ public function course_placing_order_from_customer( $item_id, $item, $order_id )
$course_id = $if_has_course->post_id;
if ( ! $customer_id && WC()->session->has_session() ) {
$guest_customer_id = WC()->session->get_customer_unique_id();
update_meta( $course_id, self::TUTOR_WC_GUEST_CUSTOMER_ID, $guest_customer_id );
update_post_meta( $course_id, self::TUTOR_WC_GUEST_CUSTOMER_ID, $guest_customer_id );
return;
}
tutor_utils()->do_enroll( $course_id, $order_id, $customer_id );
Expand Down

0 comments on commit 191ca5f

Please sign in to comment.