Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: group member names push into array not working

@kiciana

Participant

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.

Skip to toolbar