Forums
-
- Forum
- Posts
-
- Installing BuddyPress
- 23,840
- How-to & Troubleshooting
- 129,892
- Creating & Extending
- 25,913
- Requests & Feedback
- 9,553
- Third Party Plugins
- 9,834
- Showcase
- 3,316
- Ideas
- 1,404
- 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.