Install
This is the repository archive. It installs, but the folder name will carry the branch suffix and updates will not flow.
Install straight from GitHub with WP-CLI:
wp plugin install https://github.com/yaronguez/wp-groups-user-query/archive/refs/heads/master.zipNo built-in updater. New versions won't appear under Dashboard → Updates. Install new releases yourself, or let Git Updater track the repository.
Extends WP_User_Query to allow filtering by Group IDs from the Groups plugin
Description
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!
Changelog
1.0
- Initial version