Contributors: yaronguez
Tags: posts-to-posts
Tested up to: 4.8
License: GPLv2 or later
License URI: http://www.gnu.org/licenses/gpl-2.0.html
Extends WP_User_Query to allow filtering by Group IDs from the Groups plugin
Upon activating this plugin, just add a group_ids
argument to WP User Query constructor and specify an array of group IDs to filter by:
// Fetch administrators within group 4 or 6
$query = new WP_Query(array(
'role' => 'Administrator',
'group_ids' => [4,6]
));
Simple!
= 1.0 =
- Initial version