Advertisement
Naijaping

FB style activity time

May 29th, 2013
245
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.25 KB | None | 0 0
  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
Add Comment
Please, Sign In to add comment
Advertisement