Filtering roles
-
Hi there and thank you for making life for wordpress+buddypress users much more enjoyable. ??
I had a code to limit search results of buddypress member search to only one specific role which doesn’t work anymore because of added args by your plugin.
Can you extend this plugin to cover this? It would be awesome to have a filter option to limit search results of this and buddypress simple member search to specific roles or atleast give me some directions to fix my problem, that would be even more awesome. ??Here is my old code:
function modify_members_loop( $qs=false, $object=false ) { if ( $object != 'members' ) return $qs; $sellers = get_users( 'fields=ID&role=seller' ); $args['include'] = $sellers; $qs = build_query($args); return $qs; } add_action( 'bp_ajax_querystring' , 'modify_members_loop', 25, 2 );
Viewing 4 replies - 1 through 4 (of 4 total)
Viewing 4 replies - 1 through 4 (of 4 total)
- The topic ‘Filtering roles’ is closed to new replies.