bbp_get_topic_post_date

The bbPress bbp get topic post date hook.

Description

apply_filters( 'bbp_get_topic_post_date', (unknown) $result, (unknown) $topic_id, (unknown) $humanize, (unknown) $gmt, (unknown) $date, (unknown) $time ); 

Parameters (6)

0. $result (unknown)
The result.
1. $topic_id (unknown)
The topic id.
2. $humanize (unknown)
The humanize.
3. $gmt (unknown)
The gmt.
4. $date (unknown)
The date.
5. $time (unknown)
The time.

Usage

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

Defined (1)

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

/includes/topics/template.php  
  1. return apply_filters( 'bbp_get_topic_post_date', $result, $topic_id, $humanize, $gmt, $date, $time );