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?


share|improve this question

closed as off-topic by toscho Aug 2 '14 at 20:54

This question appears to be off-topic. The users who voted to close gave this specific reason:

If this question can be reworded to fit the rules in the help center, please edit the question.

1 Answer 1

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

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