Core Function
View Source on Trac ↗ maybe_drop_column()
maybe_drop_column( mixed $table_name, mixed $column_name, mixed $drop_ddl ) Drops column from database table, if it exists.
Parameters 3 required
| Name / Type | Description |
|---|---|
| $table_name string | Database table name. Required |
| $column_name string | Table column name. Required |
| $drop_ddl string | SQL statement to drop column. Required |
Return Value
(bool)
True on success or if the column doesn't exist. False on failure.
Function Information
Since Version
1.0.0
Source File
wp-admin/install-helper.php
Advertisement