SHARE
TWEET

FB style activity time

Naijaping May 29th, 2013 79 Never
  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');
RAW Paste Data
Top