Skip to:
Content
Pages
Categories
Search
Top
Bottom

SNIPPET: Remove time from activity action.

  • Avatar of @ChrisClayton
    @ChrisClayton
    Participant

    @chrisclayton

    After a ‘friend’ tried to claim that BP is a bad plugin because it apparently forces you to use Display:none; to modify it (he used the time in activity_action as an example) so i had to go through my code snippets to find this to prove him wrong, and thought some of you might find some sorta use out of it.

    `<?php
    function cc_activity_time_since() {
    return false;
    }
    add_filter (‘bp_activity_time_since’, ‘cc_activity_time_since’);
    ?>`

Viewing 1 replies (of 1 total)
  • Avatar of Paul Gibbs
    Paul Gibbs
    Keymaster

    @djpaul

    Cool, but I can one-up you ;)

    add_filter (‘bp_activity_time_since’, ‘__return_false’);

Viewing 1 replies (of 1 total)

You must be logged in to reply to this topic.