AC_ListScreen

The AC_ListScreen contains information about the list table and screen a column is used on.

List screen classes

The following list screens are supported:

  • AC_ListScreen_Post : Post type screens, like post and page
  • AC_ListScreen_Media : Media screen
  • AC_ListScreen_User : User screen
  • AC_ListScreen_Comment : Comment screen
  • AC_ListScreen_Taxonomy : Taxonomy screen
  • AC_ListScreen_MSSite : Sites screen on a WordPress Multisite Network
  • AC_ListScreen_MSUser : Network User screen on a WordPress Multisite Network

Methods

  • get_key() : Returns its unique key (string)
  • get_label() : Returns its label (string) For example Post, User or Comment.
  • get_meta_type() : Returns its meta type (string) For example post or user, which is mostly used when working with custom meta data.
  • get_screen_id() : Returns its current WP_Screen::ID (string)
  • get_columns() : Returns all stored AC_Column objects
  • get_column_types() : Returns all available AC_Column objects
  • get_object() : Returns a WP_PostWP_UserWP_Comment or WP_Term object depending on the list screen type
  • get_list_table() : Returns an instance of the WP_List_Table

The list screen is available from the AC_Column object by using the AC_Column::get_list_screen() method.