Skip to content

Instantly share code, notes, and snippets.

Created Aug 16, 2016
What would you like to do?
// put this in a function otherwise i will get upset.
$data = xprofile_get_field_data( 'Location', bp_displayed_user_id(), 'comma' );
if ( $data ) {
echo "Lives in {$data}";
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment