Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,871
- Creating & Extending
- 25,908
- Requests & Feedback
- 9,550
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,179
-
The user was registered as a contributor even though it should have been an expert.
This shows that $_POST['user_type'] is either a) not set or b) set to something that isn’t ‘expert’. This shows, your problem isn’t with your switch statement, or your wp_update_user() function; instead, the problem is with your $_POST data. You’ll need to investigate how you’re capturing data from your form.