1. Home
  2. Docs
  3. Function Reference
  4. Functions
  5. column_exist_fn()

column_exist_fn()

Check if a table column exists.

Copy to Clipboard

Parameters

$table_str

Table name

$col_str

Column name

$echoQuery_bln

If true the query will be echoed out (default false)

$prefixMe_bln

If true, prefixes table names with the WordPress table prefix (default true)

Return

boolean

true if column exists

Example

Copy to Clipboard

Location

This function can be found here: