Skip to:
Content
Pages
Categories
Search
Top
Bottom

Update ‘active x time ago’ only when generating public activity

  • Avatar of Luciano Passuello
    Luciano Passuello
    Participant

    @lucianop

    While logged in, simply by browsing the site, the ‘active x time ago’ gets updated. Some users expressed their concern with privacy, and I agree. I want to update the ‘active x time ago’ only when an user generates an activity that gets logged publicly (i.e. goes to the activity stream).

    Here’s my first try:
    `
    remove_action( ‘wp_head’, ‘bp_core_record_activity’ );
    add_action( ‘bp_activity_add’, ‘bp_core_record_activity’ );
    `

    It doesn’t work reliably, though. People commented on the blog (generating recorded activity), but the ‘x time since’ didn’t get updated. On other instances, I saw ‘x time since’ getting updated, without seeing activity…

    Any clues on why this is wrong or how to proceed are welcome.
    Thanks!

You must be logged in to reply to this topic.