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 Jun 24th, 2010  |  syntax: None  |  size: 0.26 KB  |  views: 161  |  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 ray_bp_page_title( $title ) {
  2.         global $bp;
  3.  
  4.         if ( bp_is_member() ) {
  5.                 $title = str_replace( $bp->displayed_user->fullname, $bp->displayed_user->userdata->user_login, $title );
  6.         }
  7.  
  8.         return $title;
  9. }
  10. add_filter( 'bp_page_title', 'ray_bp_page_title' );