Browse Source

faculty profile 3

Rousnay 1 year ago
parent
commit
e32d5c6792
1 changed files with 2 additions and 2 deletions
  1. 2 2
      functions.php

+ 2 - 2
functions.php

@@ -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;