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