maybe_drop_column


maybe_drop_column ( $table_name, $column_name, $drop_ddl )

Parameters:
  • (string) table_name Table name
  • (string) column_name 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

Drop 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