Forums
-
- Forum
- Posts
-
- Installation
- 28,255
- Troubleshooting
- 61,784
- Themes
- 10,301
- Plugins
- 15,221
- Requests & Feedback
- 14,830
- Showcase
- 3,252
-
You aren’t inside a function so there’s no need to globalise $bbdb
.
This will get you every user (including all meta) into the array $users
:
$user_ids = $bbdb->get_col( "SELECT ID FROM $bbdb->users WHERE user_status = 0 ORDER BY id;", 0 );
$users = bb_get_user( $user_ids );
print_r( $users );
See also: WordPress.org • bbPress.org • BuddyPress.org • Matt • Blog RSS