AC_Column class contains the properties, options, and methods of a column.
There are two main scenarios you might want to use AC_Column:
If you have been using a filter or action to hook into Admin Columns and one of the callback values is a column object. Another scenario is when you have created a new column yourself and have extended on
get_name(): Returns the unique name, which can also be used as its identifier (string)
get_type(): Returns the type (string)
get_label(): Returns hard coded label (string)
get_post_type(): Returns post type (string)
get_taxonomy(): Return taxonomy type (string)
get_option( $name ): Returns a stored option value
get_value( $id ): Returns the column value used for displaying
get_raw_value( $id ): Returns the raw column value (mostly used by sorting and inline edit )
AC_Column class is located in
/codepress-admin-columns/classes/column.php. Please read over the extended comments found above each function in to learn more, this file is available on github.
Methods and Properties
Get the column type, this can be anything from
column-meta. The exact type can be found by hover over the Type label inside the column settings.
Get the column name, this is a unique identifier for each stored column. The exact name and column type can be found by hover over the Type label inside the column settings.