maybe_add_column
maybe_add_column ( $table_name, $column_name, $create_ddl )
Parameters:- (string) table_name Database table name.
- (string) column_name Table column name.
- (string) create_ddl SQL statement to add column.
Returns:- (bool) True on success or if the column already exists. False on failure.
Defined at: - Introduced in WordPress: 1.0.0
- Deprecated in WordPress: —
Description
Adds column to database table, if it doesn't already exist.