bb_current_time

The BuddyPress bb current time function.

Description

bb_current_time( (string) $type = 'timestamp' ); 

Parameters (1)

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

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-core.php  
  1. function bb_current_time( $type = 'timestamp' ) { 
  2. return current_time( $type, true );