Forum Replies Created

Viewing 1 post (of 1 total)
  • Author
  • in reply to: hidden CSS #136696
     karmatiger
    Participant

    in functions.php, I’ve added:

    COPY CODE
    function text_pre_timestamp() {
      $link = '';
      if ( bp_activity_user_can_delete() ) {
    	  $url   = bp_get_activity_delete_url();
    	  $link = 'click <a href="' . $url . '" class="activity-list delete">' . __( 'here', 'buddypress' ) . '</a> to delete';
      }
      
      $var = '<span style="white-space: nowrap;"> %s ago ';// %s = timestamp
      if (!$link == '') $var = $var . '| ' . $link; 
      $var = $var . "</span>";
      return $var;
    
    }
    add_filter( 'bp_core_time_since_ago_text', 'text_pre_timestamp' );

    the output should be:

    [timestamp] | click here to delete

    but the output is:

    [timestamp] | click
    here

    to delete

Viewing 1 post (of 1 total)

Log in with your credentials

Forgot your details?