Installer::maybe_create_table( string $table_name, string $create_sql )

Create database table, if it doesn’t already exist.


Description Description

Based on admin/install-helper.php maybe_create_table function.


Parameters Parameters

$table_name

(Required) Database table name.

$create_sql

(Required) Create database table SQL.


Top ↑

Return Return

(bool) False on error, true if already exists or success.


Top ↑

Source Source

File: packages/woocommerce-blocks/src/Installer.php


			


Top ↑

User Contributed Notes User Contributed Notes

You must log in before being able to contribute a note or feedback.