Last active
December 22, 2015 22:49
-
-
Save billerickson/6542831 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?php | |
// Grab Authorized Users | |
$admins = new WP_User_Query( array( 'role' => 'bbp_keymaster', 'fields' => 'ID' ) ); | |
$moderators = new WP_User_Query( array( 'role' => 'bbp_moderator', 'fields' => 'ID' ) ); | |
$users = array_merge( $admins->results, $moderators->results ); | |
// Build the bbPress query | |
// ... |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment