Core Function
View Source on Trac ↗ maybe_create_table()
maybe_create_table( mixed $table_name, mixed $create_ddl ) Creates a table in the database, if it doesn't already exist.
Parameters 2 required
| Name / Type | Description |
|---|---|
| $table_name string | Database table name. Required |
| $create_ddl string | SQL statement to create table. Required |
Return Value
(bool)
True on success or if the table already exists. False on failure.
Function Information
Since Version
1.0.0
Source File
wp-admin/includes/upgrade.php
Advertisement