This function has been deprecated. BuddyPress 1.5.0 instead.
bp_core_get_wp_profile()
Description
Source
File: bp-core/deprecated/buddypress/1.5.php
function bp_core_get_wp_profile() { _deprecated_function( __FUNCTION__, '1.5' ); $ud = get_userdata( bp_displayed_user_id() ); ?> <div class="bp-widget wp-profile"> <h4><?php _e( 'My Profile', 'buddyboss' ) ?></h4> <table class="wp-profile-fields"> <?php if ( $ud->display_name ) : ?> <tr id="wp_displayname"> <td class="label"><?php _e( 'Name', 'buddyboss' ); ?></td> <td class="data"><?php echo $ud->display_name; ?></td> </tr> <?php endif; ?> <?php if ( $ud->user_description ) : ?> <tr id="wp_desc"> <td class="label"><?php _e( 'About Me', 'buddyboss' ); ?></td> <td class="data"><?php echo $ud->user_description; ?></td> </tr> <?php endif; ?> <?php if ( $ud->user_url ) : ?> <tr id="wp_website"> <td class="label"><?php _e( 'Website', 'buddyboss' ); ?></td> <td class="data"><?php echo make_clickable( $ud->user_url ); ?></td> </tr> <?php endif; ?> <?php if ( $ud->jabber ) : ?> <tr id="wp_jabber"> <td class="label"><?php _e( 'Jabber', 'buddyboss' ); ?></td> <td class="data"><?php echo $ud->jabber; ?></td> </tr> <?php endif; ?> <?php if ( $ud->aim ) : ?> <tr id="wp_aim"> <td class="label"><?php _e( 'AOL Messenger', 'buddyboss' ); ?></td> <td class="data"><?php echo $ud->aim; ?></td> </tr> <?php endif; ?> <?php if ( $ud->yim ) : ?> <tr id="wp_yim"> <td class="label"><?php _e( 'Yahoo Messenger', 'buddyboss' ); ?></td> <td class="data"><?php echo $ud->yim; ?></td> </tr> <?php endif; ?> </table> </div> <?php }
Changelog
Version | Description |
---|---|
BuddyPress 1.5.0 | Introduced. |
Questions?
We're always happy to help with code or other questions you might have! Search our developer docs, contact support, or connect with our sales team.