you can use the below users function of wordpress:
$user_id = wp_insert_user( $userdata ) ;
wp_update_user([
'ID' => $user_id, // this is the ID of the user you want to update.
'first_name' => $fname,
'last_name' => $lname,
]);
For more
tutorials you can visit our articles or visit questions page http://www.webetutorial.com/question/insert-user-in-wordpress-programmatically/ .
You can join us on twitter https://twitter.com/webetutorialcom or subscribe us on YouTube https://www.youtube.com/channel/UCOOwypftpLyhJxeF-tUQXSw/videos?view_as=subscriber for more web design & development tutorials.
No comments:
Post a Comment