bb_get_post_time

The BuddyPress bb get post time function.

Description

bb_get_post_time( (string) $args = '' ); 

Parameters (1)

0. $args — Optional. (string) => ''
The args.

Usage

  1. if ( !function_exists( 'bb_get_post_time' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-template.php'; 
  3.  
  4. // The args. 
  5. $args = ''; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_post_time($args); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-template.php  
  1. function bb_get_post_time( $args = '' ) { 
  2. $args = _bb_parse_time_function_args( $args ); 
  3.  
  4. $bb_post = bb_get_post( get_post_id( $args['id'] ) ); 
  5.  
  6. $time = apply_filters( 'bb_get_post_time', $bb_post->post_time, $args ); 
  7.  
  8. return _bb_time_function_return( $time, $args );