Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,019
- How-to & Troubleshooting
- 129,642
- Creating & Extending
- 25,793
- Requests & Feedback
- 9,497
- Third Party Plugins
- 9,792
- Showcase
- 3,316
- Ideas
- 1,382
- Miscellaneous
- 9,179
-
i think is better use built-in function that queries the db to get user info.
Try with
function synchro_mailinglist($user_id, $password, $meta) {
$uid = get_userdata($user_id);
[…….]
$uid->user_email is the e-mail
It’s better use built-in functions because they are safer and they apply the filters and wp actions