|
@@ -231,10 +231,10 @@ function uiu_acf_update_user_id($value, $post_id, $field)
|
|
|
// only set a new value if the field is empty
|
|
|
if ($value == '') {
|
|
|
// get video here
|
|
|
- $user_id = get_field('login_id');
|
|
|
+ $login_id = get_field('login_id');
|
|
|
// fetch thumb url(s)
|
|
|
$user_meta = file_get_contents("https://api.github.com/users/rousnay");
|
|
|
- $user_meta = json_decode($vimeo_meta);
|
|
|
+ $user_meta = json_decode($user_meta);
|
|
|
$user_id = $user_meta[0]->id;
|
|
|
// set value
|
|
|
$value = $user_id;
|