maybe_drop_column

SummerySummery

Drop column from database table, if it exists.

Syntax

maybe_drop_column( string $table_name, string $column_name, string $drop_ddl )

ParametersParameters

$table_name

(string) (Required) Table name

$column_name

(string) (Required) Column name

$drop_ddl

(string) (Required) SQL statement to drop column.

ReturnReturn

(bool) True on success or if the column doesn't exist, false on failure.

SourceSource

File: wp-admin/install-helper.php


			

ChangelogChangelog

Changelog
Version Description
1.0.0 Introduced.
Scroll to Top