maybe_add_column

SummerySummery

Add column to database table, if column doesn’t already exist in table.

Syntax

maybe_add_column( string $table_name, string $column_name, string $create_ddl )

ParametersParameters

$table_name

(string) (Required) Database table name

$column_name

(string) (Required) Table column name

$create_ddl

(string) (Required) SQL to add column to table.

ReturnReturn

(bool) False on failure. True, if already exists or was successful.

SourceSource

File: wp-admin/install-helper.php


			

ChangelogChangelog

Changelog
Version Description
1.0.0 Introduced.
Scroll to Top