bbp_reply_post_date

Output the post date and time of a reply.

Description

bbp_reply_post_date( (int) $reply_id = 0, (constant) $humanize = false, (bool) $gmt = false ); 

Parameters (3)

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

Usage

  1. if ( !function_exists( 'bbp_reply_post_date' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'bbpress/includes/replies/template.php'; 
  3.  
  4. // Optional. Reply id. 
  5. $reply_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_reply_post_date($reply_id, $humanize, $gmt); 
  15.  

Defined (1)

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

/includes/replies/template.php  
  1. function bbp_reply_post_date( $reply_id = 0, $humanize = false, $gmt = false ) { 
  2. echo bbp_get_reply_post_date( $reply_id, $humanize, $gmt );