WPDev.one
Core Function
View Source on Trac ↗

check_column()

check_column( mixed $table_name, mixed $col_name, mixed $col_type, mixed $is_null = null, mixed $key = null, mixed $default_value = null, mixed $extra = null )

Checks that database table column matches the criteria.

Parameters 3 required

Name / Type Description
$table_name
string

Database table name.

Required
$col_name
string

Table column name.

Required
$col_type
string

Table column type.

Required
$is_null
bool

Optional. Check is null.

$key
mixed

Optional. Key info.

$default_value
mixed

Optional. Default value.

$extra
mixed

Optional. Extra value.

Return Value

(bool)
True, if matches. False, if not matching.

Function Information

Since Version
1.0.0
Source File
wp-admin/install-helper.php
Advertisement