Skip to:
Content
Pages
Categories
Search
Top
Bottom

Re: How to print all user profiles


Sam Bauers
Participant

@sambauers

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 );

Skip to toolbar