Skip to content

Commit

Permalink
Update: meta_id to post_id
Browse files Browse the repository at this point in the history
  • Loading branch information
Anindra123 committed Jan 13, 2025
1 parent 4f487aa commit 8fc5a53
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 @@ -137,7 +137,7 @@ public function enroll_guest_user( $guest_customer_id, $customer_id ) {
global $wpdb;
$course_ids = $wpdb->get_col(
$wpdb->prepare(
"SELECT meta_id FROM {$wpdb->postmeta} WHERE meta_key=%s AND meta_value=%s",
"SELECT post_id FROM {$wpdb->postmeta} WHERE meta_key=%s AND meta_value=%s",
self::TUTOR_WC_GUEST_CUSTOMER_ID,
$guest_customer_id
)
Expand Down

0 comments on commit 8fc5a53

Please sign in to comment.