fauzanjeg

Show Bio/Description of user in member page of buddypress

Jul 29th, 2021 (edited)
157
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
PHP 0.40 KB | None | 0 0
  1. /* Show Bio/Description of user in member page of buddypress */
  2. function add_user_bio_in_member_page() {
  3.     $user_data = get_user_meta(bp_displayed_user_id());
  4.     $user_description = $user_data['description'];
  5.     echo $user_description[0];
  6. }
  7. add_action( 'bp_profile_header_meta', 'add_user_bio_in_member_page' );
  8. add_action( 'bp_directory_members_item', 'add_user_bio_in_member_page' ); /* In member list */
Add Comment
Please, Sign In to add comment