Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add BuddyPress extended profile data to the export #8

Closed
alex-418 opened this issue Dec 2, 2017 · 2 comments
Closed

Add BuddyPress extended profile data to the export #8

alex-418 opened this issue Dec 2, 2017 · 2 comments

Comments

@alex-418
Copy link
Contributor

alex-418 commented Dec 2, 2017

Check for Buddy Press, and if it exists, use bp_get_profile_field_data() or similar to get the extended profile data for the user (fields and values), and add this to the export array.

@alex-418
Copy link
Contributor Author

Got a start on getting all bp profile data, to avoid having to specify a field:
$profile_data = array_map( function ( $a ) { return $a[0]; }, \BP_XProfile_ProfileData::get_all_for_user( $user->ID ) );

@alex-418
Copy link
Contributor Author

Ended up going with: BP_XProfile_Group::get( array( 'fetch_fields' => true ) ); in https://github.com/BCcampus/excel-export/tree/buddypress

@alex-418 alex-418 closed this as completed Jan 3, 2018
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

1 participant