Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,881
- Creating & Extending
- 25,910
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,832
- Showcase
- 3,316
- Ideas
- 1,402
- Miscellaneous
- 9,183
-
Is this right then?
function my_action_callback() {
$names = array();
$whatever = intval( $_POST['whatever'] );
while ( bp_group_members() ) : bp_group_the_member();
array_push($names, bp_get_group_member_name());
endwhile;
//$rep2 = array( $_POST['whatever'] . ' successful!' );
echo json_encode($names);
die();
}
The plugin is run only in a group view.