Skip to:
Content
Pages
Categories
Search
Top
Bottom

Remove Time Last Active


  • ireallyneedhelp
    Participant

    @ireallyneedhelp

    I want to remove time last active on my wp and bp site. On the member page, I don’t want it to show up. I tried adding #buddypress span.activity {
    display: none!important;
    }
    as css, but it didn’t work. I also tried
    /* remove “not recently active” */
    function bpfr_core_get_last_activity( $last_activity_date, $string ) {
    if ( empty( $last_activity_date ) )
    // we do nothing
    $last_active = ”;
    else
    $last_active = sprintf( $string, bp_core_time_since( $last_activity_date ) );
    }
    add_filter( ‘bp_core_get_last_activity’, ‘bpfr_core_get_last_activity’ );

    /* remove whole recently active filter */
    function bpfr_remove_last_activity_filter() {
    remove_filter( ‘bp_core_get_last_activity’, $last_active, $last_activity_date, $string );
    }
    add_filter( ‘bp_core_get_last_activity’, ‘bpfr_remove_last_activity_filter’ );
    to my functions.php file, but that didn’t work either. What should I do?

Viewing 1 replies (of 1 total)
Viewing 1 replies (of 1 total)
  • You must be logged in to reply to this topic.
Skip to toolbar