bb_maybe_add_column

The BuddyPress bb maybe add column function.

Description

bb_maybe_add_column( (string) $table_name, (string) $column_name, $create_ddl ); 

Parameters (3)

0. $table_name (string)
The table name.
1. $column_name (string)
The column name.
2. $create_ddl
The create ddl.

Usage

  1. if ( !function_exists( 'bb_maybe_add_column' ) ) { 
  2. require_once ABSPATH . PLUGINDIR . 'buddypress/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php'; 
  3.  
  4. // The table name. 
  5. $table_name = ''; 
  6.  
  7. // The column name. 
  8. $column_name = ''; 
  9.  
  10. // The create ddl. 
  11. $create_ddl = null; 
  12.  
  13. // NOTICE! Understand what this does before running. 
  14. $result = bb_maybe_add_column($table_name, $column_name, $create_ddl); 
  15.  

Defined (1)

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

/bp-forums/bbpress/bb-includes/functions.bb-deprecated.php  
  1. function bb_maybe_add_column( $table_name, $column_name, $create_ddl ) { 
  2. bb_log_deprecated('function', __FUNCTION__, 'no alternative'); 
  3. return false;