trying to use wp_update_user in plugin – not working
-
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??
By crashes, I mean that anything which I process/output after trying the wp_update_user function just doesnt show.
Viewing 2 replies - 1 through 2 (of 2 total)
Viewing 2 replies - 1 through 2 (of 2 total)
- The topic ‘trying to use wp_update_user in plugin – not working’ is closed to new replies.