SHARE
TWEET

FB style activity time

Naijaping May 29th, 2013 88 Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
  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
Pastebin PRO Summer Special!
Get 40% OFF on Pastebin PRO accounts!
Top