回答編集履歴

1

修正

2019/09/24 03:29

投稿

KazuhiroHatano
KazuhiroHatano

スコア7819

test CHANGED
@@ -10,7 +10,7 @@
10
10
 
11
11
  global $wpdb;
12
12
 
13
- return $wpdb->get_results("SELECT meta_value FROM {$wpdb->usermeta} WHERE user_id = {$user_id} AND meta_key LIKE '{$key}'");
13
+ return $wpdb->get_col("SELECT meta_value FROM {$wpdb->usermeta} WHERE user_id = {$user_id} AND meta_key LIKE '{$key}'");
14
14
 
15
15
  }
16
16