How to find the Column Name or Type

The "Column Name/Type" can be found by opening the screen options in the top-right corner of the admin columns settings page. Enable the "Column Info" by clicking the checkbox next to it. The Column Name/Type will now be visible for each column.

This shows you the "Column Type and Name" and the "Table and ID":


What is the Column Name (ID)

The Column Name is a unique identifier that is assigned when the Column has been stored in the database. e.g.  5eeca98f4e9ba     .

The method AC\Column::get_id()   will return the column Name.


What is the Column Type

The Column Type is a hard-coded identifier for each type of column. There are many types of columns, each with its own type.

The method AC\Column::get_type()  will return the column Type.


Examples

Label Type get_type()   Name (ID) get_id()  
Title title    title   
Featured Image column-featured_image    fea28ce0ca4789374   
Custom Field column-meta    137248bf2e147b   
Page Template column-page_template    39ef7a3289374c   
Slug column-fslug    5b0bd01103d70c   
User: First Name column-first_name    4aa64ccc3c28f4   

The $column_id  or $column_type  is useful when you are using our actions and filters and you need to target a specific Column.

Still need help? Contact Us Contact Us