wp_update_user crashes my plugin for wordpress

Posted by Matt Facer on Stack Overflow See other posts from Stack Overflow or by Matt Facer
Published on 2010-06-05T10:04:54Z Indexed on 2010/06/05 10:12 UTC
Read the original article Hit count: 320

I am trying to write a plugin which will update a user field. I can use the update user meta function OK, but when I try the wp_update_user it doesnt work.

wp_update_user($user_ID, 'user_nicename', 'test');

That crashes the plugin. Do I need to include something for this function to work??

© Stack Overflow or respective owner

Related posts about php

Related posts about Wordpress