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:

Description

Adds column to database table, if it doesn't already exist.

Related Functions

maybe_drop_column, image_add_caption, get_hidden_columns, maybe_hash_hex_color, _maybe_update_core

Top Google Results

User discussions

wpseek mobile