Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- $user_id = wp_insert_user($userdata);
- if(!is_wp_error($user_id)){
- wp_set_current_user($user_id, $email);
- wp_redirect(site_url());
- }
- Warning: Cannot modify header information - headers already sent by (output started at /var/www/html/wordpress/wp-includes/general-template.php:2768) in /var/www/html/wordpress/wp-includes/pluggable.php on line 1219
Add Comment
Please, Sign In to add comment