Skip to content

Instantly share code, notes, and snippets.

Embed
What would you like to do?
Display Xprofile data in admin user-edit page
<?php
add_action('personal_options','bpdev_show_info_on_profile_edit_page');
function bpdev_show_info_on_profile_edit_page($user){
$user_id=$user->ID;
//repeat the below line for each of the field you want to list
//replace the field name with the xprofile field name e.g Name, About etc
?>
<tr><th>Field Name</th><td><?php echo xprofile_get_field_data('Field Name',$user_id);?></td></tr>
<?php
}
?>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
You can’t perform that action at this time.