• 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)
  • 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.