Title: update_usermeta is deprecated
Last modified: August 22, 2016

---

# update_usermeta is deprecated

 *  Resolved [Szyam](https://wordpress.org/support/users/szyam/)
 * (@szyam)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/update_usermeta-is-deprecated/)
 * Hey great plugin,
 * Just noticed some errors in debug:
    update_usermeta is deprecated
 * I switched the 3 lines in the php to xyz_user_meta format. Just a heads up.
 * [https://wordpress.org/plugins/custom-user-profile-photo/](https://wordpress.org/plugins/custom-user-profile-photo/)

Viewing 3 replies - 1 through 3 (of 3 total)

 *  [joshheppner](https://wordpress.org/support/users/joshheppner/)
 * (@joshheppner)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/update_usermeta-is-deprecated/#post-5246191)
 * Can you send me or post the code you used to get it to work, for some reason 
   I can’t get it to pull the custom photo on the posts page. Thanks!
 *  Thread Starter [Szyam](https://wordpress.org/support/users/szyam/)
 * (@szyam)
 * [11 years, 11 months ago](https://wordpress.org/support/topic/update_usermeta-is-deprecated/#post-5246201)
 * hey [@joshheppner](https://wordpress.org/support/users/joshheppner/) , this is
   an example that I’m using:
 *     ```
       <?php
                 $contributor_id = get_the_author_meta('ID');
                 // Set the image size. Accepts all registered images sizes and array(int, int)
       	        $size = 'medium';
   
       	// Get the image URL using the author ID and image size params
       		$imgURL = get_cupp_meta($contributor_id, $size);
   
       	// Print the image on the page
       	        echo '<div class="author-wrapper">
                      <img src="'. $imgURL .'" alt="">
                      <p class="contributor-bio">' . get_the_author_meta( 'description' ) . '</p>';
        ?>
       ```
   
 * Which is inside the loop.
 *  [3five](https://wordpress.org/support/users/3five/)
 * (@3five)
 * [11 years, 6 months ago](https://wordpress.org/support/topic/update_usermeta-is-deprecated/#post-5246284)
 * Excellent catch Szyam. I’ll be adding this in the next release.
 * Cheers.

Viewing 3 replies - 1 through 3 (of 3 total)

The topic ‘update_usermeta is deprecated’ is closed to new replies.

 * ![](https://s.w.org/plugins/geopattern-icon/custom-user-profile-photo_e4e4e4.
   svg)
 * [Custom User Profile Photo](https://wordpress.org/plugins/custom-user-profile-photo/)
 * [Frequently Asked Questions](https://wordpress.org/plugins/custom-user-profile-photo/#faq)
 * [Support Threads](https://wordpress.org/support/plugin/custom-user-profile-photo/)
 * [Active Topics](https://wordpress.org/support/plugin/custom-user-profile-photo/active/)
 * [Unresolved Topics](https://wordpress.org/support/plugin/custom-user-profile-photo/unresolved/)
 * [Reviews](https://wordpress.org/support/plugin/custom-user-profile-photo/reviews/)

 * 3 replies
 * 3 participants
 * Last reply from: [3five](https://wordpress.org/support/users/3five/)
 * Last activity: [11 years, 6 months ago](https://wordpress.org/support/topic/update_usermeta-is-deprecated/#post-5246284)
 * Status: resolved