Forums
-
- Forum
- Posts
-
- Installation
- 28,380
- Troubleshooting
- 62,287
- Themes
- 10,391
- Plugins
- 15,313
- Requests & Feedback
- 14,932
- 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 );