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 to add column to table.
Returns:
  • (bool) False on failure. True, if already exists or was successful.
Defined at:

Description

Add column to database table, if column doesn't already exist in table.

Related Functions

maybe_drop_column, image_add_caption, get_hidden_columns, maybe_hash_hex_color, _maybe_update_plugins

Top Google Results

User discussions

wpseek mobile