Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,857
- How-to & Troubleshooting
- 128,899
- Creating & Extending
- 25,740
- Requests & Feedback
- 9,445
- Third Party Plugins
- 9,773
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,133
-
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