Title: using wp_update_user
Last modified: August 19, 2016

---

# using wp_update_user

 *  [rhino18](https://wordpress.org/support/users/rhino18/)
 * (@rhino18)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/using-wp_update_user/)
 * Hello, I am trying to use wp_update_user() in a page template file in my theme.
   When I call it, I get the following error:
 * `Fatal error: Call to undefined function wp_update_user()`
 * I have been testing with this example of it:
 * `wp_update_user( array ('ID' => $user_ID, 'user_url' => $up_site) )`
 * The variables in the array all contain valid, existing information.

Viewing 1 replies (of 1 total)

 *  [mxxx](https://wordpress.org/support/users/mxxx/)
 * (@mxxx)
 * [15 years, 9 months ago](https://wordpress.org/support/topic/using-wp_update_user/#post-1602798)
 * the wp_update_user() function hasn’t been loaded.
 * if you require the /wp-includes/registration.php file like this:
 * `require_once( ABSPATH . WPINC . '/registration.php');`
 * you should be able to use wp_update_user.

Viewing 1 replies (of 1 total)

The topic ‘using wp_update_user’ is closed to new replies.

 * In: [Fixing WordPress](https://wordpress.org/support/forum/how-to-and-troubleshooting/)
 * 1 reply
 * 2 participants
 * Last reply from: [mxxx](https://wordpress.org/support/users/mxxx/)
 * Last activity: [15 years, 9 months ago](https://wordpress.org/support/topic/using-wp_update_user/#post-1602798)
 * Status: not resolved

## Topics

### Topics with no replies

### Non-support topics

### Resolved topics

### Unresolved topics

### All topics
