bbp_topic_post_date

Output the post date and time of a topic.

Description

bbp_topic_post_date( (int) $topic_id = 0, (constant) $humanize = false, (bool) $gmt = false ); 

Parameters (3)

0. $topic_id — Optional. (int)
Topic id.
1. $humanize — Optional. (constant) => false
Humanize output using time_since
2. $gmt — Optional. (bool) => false
Use GMT

Usage

  1. if ( !function_exists( 'bbp_topic_post_date' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/topics/template.php'; 
  3.  
  4. // Optional. Topic id. 
  5. $topic_id = -1; 
  6.  
  7. // Optional. Humanize output using time_since 
  8. $humanize = false; 
  9.  
  10. // Optional. Use GMT 
  11. $gmt = false; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bbp_topic_post_date($topic_id, $humanize, $gmt); 
  15.  

Defined (1)

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

/includes/topics/template.php  
  1. function bbp_topic_post_date( $topic_id = 0, $humanize = false, $gmt = false ) { 
  2. echo bbp_get_topic_post_date( $topic_id, $humanize, $gmt );