Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 24,003
- How-to & Troubleshooting
- 129,526
- Creating & Extending
- 25,789
- Requests & Feedback
- 9,495
- Third Party Plugins
- 9,782
- Showcase
- 3,316
- Ideas
- 1,397
- Miscellaneous
- 9,169
-
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
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS