Advertisement
Naijaping

FB style activity time

May 29th, 2013
183
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');
Advertisement
RAW Paste Data Copied
Advertisement