bb_get_inception

Get the date when current installation was created.

Description

(int) bb_get_inception( (string) $args = '' ); 

Returns (int)

Parameters (1)

0. $args — Optional. (string) => ''
Formatting options for the timestamp.

Usage

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

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-statistics.php  
  1. function bb_get_inception( $args = '' ) { 
  2. $args = _bb_parse_time_function_args( $args ); 
  3.  
  4. global $bbdb, $bb_inception; 
  5. if ( !isset($bb_inception) ) 
  6. $bb_inception = $bbdb->get_var("SELECT topic_start_time FROM $bbdb->topics ORDER BY topic_start_time LIMIT 1"); 
  7.  
  8. return apply_filters( 'bb_get_inception', _bb_time_function_return( $bb_inception, $args ) );