Pastebin launched a little side project called VERYVIRAL.com, check it out ;-) Want more features on Pastebin? Sign Up, it's FREE!
Guest

Untitled

By: a guest on Jul 17th, 2010  |  syntax: PHP  |  size: 0.21 KB  |  views: 104  |  expires: Never
download  |  raw  |  embed  |  report abuse  |  print
Text below is selected. Please press Ctrl+C to copy to your clipboard. (⌘+C on Mac)
  1. function bbg_save_extra_profile_data() {
  2.         global $bp;
  3.        
  4.         update_user_meta( $bp->loggedin_user->id, 'my_category', $_POST['category'] ); 
  5. }
  6. add_action( 'xprofile_screen_edit_profile', 'bbg_save_extra_profile_data' );
clone this paste RAW Paste Data