maybe_drop_column


maybe_drop_column ( $table_name, $column_name, $drop_ddl )

Parameters:
  • (string) table_name Database table name.
  • (string) column_name Table column name.
  • (string) drop_ddl SQL statement to drop column.
Returns:
  • (bool) True on success or if the column doesn't exist. False on failure.
Defined at:

Description

Drops column from database table, if it exists.

Related Functions

maybe_add_column, _maybe_update_plugins, _maybe_update_core, get_hidden_columns, make_db_current

Top Google Results

User discussions

wpseek mobile