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

FB style activity time

By: Naijaping on May 29th, 2013  |  syntax: None  |  size: 0.25 KB  |  views: 68  |  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. /*return activity date in facebook style*/
  2. function format_activity_date() {
  3.   $activityDate=bp_get_activity_date_recorded();
  4.   return date ( "F j, Y g:i a", strtotime($activityDate));
  5. }
  6. add_filter('bp_activity_time_since', 'format_activity_date');
clone this paste RAW Paste Data