Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,844
- How-to & Troubleshooting
- 128,826
- Creating & Extending
- 25,735
- Requests & Feedback
- 9,442
- Third Party Plugins
- 9,772
- Showcase
- 3,317
- Ideas
- 1,388
- Miscellaneous
- 9,128
-
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