Skip to:
Content
Pages
Categories
Search
Top
Bottom

Reply To: group member names push into array not working

@shanebp

Moderator

There are several things to be changed.

You don’t need this: global $wpdb;

Change: array_push($names, bp_group_member_name() );

To: $names[] = bp_get_group_member_name();

Change the js ajax call to:

jQuery.post(ajaxurl, function(response) {
    console.log(response); // so you can examine the structure
});
Skip to toolbar