Take the 2-minute tour ×
WordPress Development Stack Exchange is a question and answer site for WordPress developers and administrators. It's 100% free, no registration required.

I want to change the activity stream date format to make it something like facebook date. I mean I need to use "... ago" date format for today's activities and "December 31, 2012 at 10:00AM" like date format for older activities.

How can I do this? Can this be done without modifying Buddypress core files?

Another question, how to remove the link from the activity date?

Thanks

share|improve this question
add comment

1 Answer

The two filters you're looking for are (source):

  1. bp_activity_time_since
  2. bp_activity_permalink

To modify the date format, you could probably use the bp_core_time_since_pre filter to bypass BuddyPress's time_since calculations (source).

Alternatively, you could completely override (i.e. replace) the activity meta output with the bp_insert_activity_meta filter

share|improve this answer
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.