This week only. Pastebin PRO Accounts Christmas Special! Don't miss out!Want more features on Pastebin? Sign Up, it's FREE!
Guest

r-a-y

By: a guest on Jun 29th, 2010  |  syntax: None  |  size: 0.24 KB  |  views: 248  |  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 my_bp_post_excerpt($activity_content, $post, $permalink) {
  2.         if($post->post_excerpt)
  3.                 return $post->post_excerpt;
  4.         else
  5.                 return $activity_content;
  6. }
  7. add_filter( 'bp_blogs_activity_new_post_content', 'my_bp_post_excerpt', 1, 3 );
clone this paste RAW Paste Data