bp_activity_comment_date_recorded

Filters the recorded date of the activity comment currently being displayed.

Description

apply_filters( 'bp_activity_comment_date_recorded', (string|bool) $bp_core_time_since ); 

Parameters (1)

0. $bp_core_time_since (string|bool) => bp_core_time_since( bp_get_activity_comment_date_recorded_raw() )
Date for the activity comment currently being displayed.

Usage

To run the hook, copy the example below.
  1. $bp_core_time_since = apply_filters( 'bp_activity_comment_date_recorded', $bp_core_time_since ); 
  2.  
  3. if ( !empty( $bp_core_time_since ) ) { 
  4.  
  5. // everything has led up to this point... 
  6.  
  7.  
The following example is for adding a hook callback.
  1. // define the bp_activity_comment_date_recorded callback 
  2. function filter_bp_activity_comment_date_recorded( $bp_core_time_since ) { 
  3. // make filter magic happen here... 
  4. return $bp_core_time_since
  5. }; 
  6.  
  7. // add the filter 
  8. add_filter( 'bp_activity_comment_date_recorded', 'filter_bp_activity_comment_date_recorded', 10, 1 ); 
To remove a hook callback, use the example below.
  1. // remove the filter 
  2. remove_filter( 'bp_activity_comment_date_recorded', 'filter_bp_activity_comment_date_recorded', 10, 1 ); 

Defined (2)

The filter is defined in the following location(s).

/bp-activity/bp-activity-template.php  
  1. return apply_filters( 'bp_activity_comment_date_recorded', bp_core_time_since( bp_get_activity_comment_date_recorded_raw() ) ); 
  1. return apply_filters( 'bp_activity_comment_date_recorded', $activities_template->activity->current_comment->date_recorded );