On this page
WP_List_Table::get_column_count(): int
Returns the number of visible columns.
Return
int
Source
File: wp-admin/includes/class-wp-list-table.php. View all references
public function get_column_count() {
list ( $columns, $hidden ) = $this->get_column_info();
$hidden = array_intersect( array_keys( $columns ), array_filter( $hidden ) );
return count( $columns ) - count( $hidden );
}
Related
Uses
| Uses | Description |
|---|---|
| WP_List_Table::get_column_info() wp-admin/includes/class-wp-list-table.php | Gets a list of all, hidden, and sortable columns, with filter applied. |
Used By
| Used By | Description |
|---|---|
| WP_List_Table::display_rows_or_placeholder() wp-admin/includes/class-wp-list-table.php | Generates the tbody element for the list table. |
| wp_plugin_update_row() wp-admin/includes/update.php | Displays update information for a plugin. |
| wp_theme_update_row() wp-admin/includes/update.php | Displays update information for a theme. |
| wp_comment_reply() wp-admin/includes/template.php | Outputs the in-line comment reply-to form in the Comments list table. |
Changelog
| Version | Description |
|---|---|
| 3.1.0 | Introduced. |
© 2003–2022 WordPress Foundation
Licensed under the GNU GPLv2+ License.
https://developer.wordpress.org/reference/classes/wp_list_table/get_column_count