Created
May 30, 2012 23:11
-
-
Save sbrajesh/2839490 to your computer and use it in GitHub Desktop.
Display Xprofile data in admin user-edit page
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
<?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