bp_core_get_wp_profile

The BuddyPress bp core get wp profile function.

Description

bp_core_get_wp_profile(); 

Usage

  1. if ( !function_exists( 'bp_core_get_wp_profile' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-core/deprecated/1.5.php'; 
  3.  
  4.  
  5. // NOTICE! Understand what this does before running. 
  6. $result = bp_core_get_wp_profile(); 
  7.  

Defined (1)

The function is defined in the following location(s).

/bp-core/deprecated/1.5.php  
  1. function bp_core_get_wp_profile() { 
  2. _deprecated_function( __FUNCTION__, '1.5' ); 
  3.  
  4. $ud = get_userdata( bp_displayed_user_id() ); ?> 
  5.  
  6. <div class="bp-widget wp-profile"> 
  7. <h4><?php _e( 'My Profile', buddypress ) ?></h4> 
  8.  
  9. <table class="wp-profile-fields"> 
  10.  
  11. <?php if ( $ud->display_name ) : ?> 
  12.  
  13. <tr id="wp_displayname"> 
  14. <td class="label"><?php _e( 'Name', buddypress ); ?></td> 
  15. <td class="data"><?php echo $ud->display_name; ?></td> 
  16. </tr> 
  17.  
  18. <?php endif; ?> 
  19.  
  20. <?php if ( $ud->user_description ) : ?> 
  21.  
  22. <tr id="wp_desc"> 
  23. <td class="label"><?php _e( 'About Me', buddypress ); ?></td> 
  24. <td class="data"><?php echo $ud->user_description; ?></td> 
  25. </tr> 
  26.  
  27. <?php endif; ?> 
  28.  
  29. <?php if ( $ud->user_url ) : ?> 
  30.  
  31. <tr id="wp_website"> 
  32. <td class="label"><?php _e( 'Website', buddypress ); ?></td> 
  33. <td class="data"><?php echo make_clickable( $ud->user_url ); ?></td> 
  34. </tr> 
  35.  
  36. <?php endif; ?> 
  37.  
  38. <?php if ( $ud->jabber ) : ?> 
  39.  
  40. <tr id="wp_jabber"> 
  41. <td class="label"><?php _e( 'Jabber', buddypress ); ?></td> 
  42. <td class="data"><?php echo $ud->jabber; ?></td> 
  43. </tr> 
  44.  
  45. <?php endif; ?> 
  46.  
  47. <?php if ( $ud->aim ) : ?> 
  48.  
  49. <tr id="wp_aim"> 
  50. <td class="label"><?php _e( 'AOL Messenger', buddypress ); ?></td> 
  51. <td class="data"><?php echo $ud->aim; ?></td> 
  52. </tr> 
  53.  
  54. <?php endif; ?> 
  55.  
  56. <?php if ( $ud->yim ) : ?> 
  57.  
  58. <tr id="wp_yim"> 
  59. <td class="label"><?php _e( 'Yahoo Messenger', buddypress ); ?></td> 
  60. <td class="data"><?php echo $ud->yim; ?></td> 
  61. </tr> 
  62.  
  63. <?php endif; ?> 
  64.  
  65. </table> 
  66. </div> 
  67.  
  68. <?php