bb_get_datetime_formatstring_i18n

The WordPress Core bb get datetime formatstring i18n function.

Description

bb_get_datetime_formatstring_i18n( (string) $type = 'datetime' ); 

Parameters (1)

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

Usage

  1. if ( !function_exists( 'bb_get_datetime_formatstring_i18n' ) ) { 
  2. require_once '/bp-forums/bbpress/bb-includes/class.bb-locale.php'; 
  3.  
  4. // The type. 
  5. $type = 'datetime'; 
  6.  
  7. // NOTICE! Understand what this does before running. 
  8. $result = bb_get_datetime_formatstring_i18n($type); 
  9.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/class.bb-locale.php  
  1. function bb_get_datetime_formatstring_i18n( $type = 'datetime' ) { 
  2. $formatstring = bb_get_option( $type . '_format' ); 
  3. if ( empty($formatstring) ) { 
  4. global $bb_locale; 
  5. $formatstring = $bb_locale->get_datetime_formatstring( $type ); 
  6. return $formatstring;